Project

General

Profile

« Previous | Next » 

Revision 9786

lib/Firefox_bookmarks.reformat.csv: unescape HTML in page's description, such as links to more info. this is necessary to properly render the persistent shells link in the screen > scrollback folder description.

View differences:

Firefox_bookmarks.reformat.csv
49 49
(<DT>)(?:<a name=.*?>)?(<H3[^\n]*?>(.*?)</H3>)(?:</a>)?,"\1<a name=""\3"" href=""#\3"">\2</a>",add hyperlinked HTML anchors for folders
50 50
"(?i)(<A\b.*? HREF=""(?!#)(.*?)"")(?: name="".*?"")?","\1 name=""\2""",add HTML anchors for external links' URLs
51 51
"(?i)(<A\b[^>]* HREF=""(?!#)[^>]*>(?!<H3\b)(?:<[^>]*>)*([^<]*)</A>)(?:<a name=.*?>.*?</a>)?","\1<a name=""\2"" href=""#\2"" style=""margin-left: 0.5em;"">&para;</a>",add hyperlinked HTML anchors for external links' names
52
,,#### formatting fixes
53
&lt;([\w:-]+)\b.*?&gt;.*?&lt;/\1&gt;,unescape_html(),"unescape HTML in page's description. must happen *after* adding HTML anchors to <a> tags, so the name attribute is added to the *bookmark's* <a> tag."

Also available in: Unified diff