I have several scripts that generate lists of tiddlers. In order for
ordered and unordered lists to render properly there are liberal
instances of "\n". I would like to run the "return" variable through a
function to eliminate the extra vertical white space. Typically, the
end of a nested list has 2 or 3 crlfs when 1 is sufficient. A
javascript loop with a regex query to find all instances of multiple
crlfs preceding an "<li>" and replace that with a single crlf + "<li>"
would clean up my output very nicely. Can a javascript guru slap a
half-dozen lines of code together to point me in the right direction?
Many thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to