The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Adding hard CRs to notes via URI handler? (http://forums.omnigroup.com/showthread.php?t=19655)

GrumpyDave 2011-01-09 10:51 AM

Adding hard CRs to notes via URI handler?
 
I'm using a bookmarklet invoke the "x-omnifocus" URI handler script to send links directly to the inbox (bypassing the quick entry window). In the bookmarklet URL the notes field includes '\n\n' between the URL and any selected text. However, the "\n" is being converted to a space instead of a carriage return by OF so the note field has the URL, two spaces, and the selected text. Is there some other character I can use to get line breaks instead of spaces?

For reference here's the bookmarklet:

[code]
javascript:window.location='x-omnifocus://newtask?name=Review:%20'+encodeURIComponent(document.title)+'&note='+encodeURIComponent(window.location+[b][color=red]'\n\n'[/color][/b])+encodeURIComponent(getSelection())+'&quickentry=0';
[/code]


All times are GMT -8. The time now is 11:59 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.