Project

General

Profile

« Previous | Next » 

Revision 14005

bugfix: lib/Firefox_bookmarks.reformat.csv: updated for new Firefox bookmarks format, which indents the <DD> tag

View differences:

trunk/lib/Firefox_bookmarks.reformat.csv
13 13
dd {white-space: pre-wrap;} /*format bookmark description as plaintext*/
14 14
</style>
15 15
",add <style>
16
"<DD>
17
(?= *<)",,remove empty <DD>
18
"^<DD>.*(?:
16
"^ *<DD>
17
(?= *<)",,remove empty  *<DD>
18
"^ *<DD>.*(?:
19 19
(?! *<).*)*(?=
20 20
 *<DL>)","\g<0>
21
</DD>",close <DD> when followed by tags which don't autoclose it properly
21
</DD>",close  *<DD> when followed by tags which don't autoclose it properly
22 22
(?s)(<A .*?>)(?:<img\b.*?/>)?,"\1<img width=""16"" height=""16"" src=""blank.gif"" style=""margin-right: 0.5em;""/>",display placeholder favicon image for every link to ensure uniform alignment
23 23
"(?s)(\bICON_URI=("".*?"").*?>.*?\bsrc=)""blank\.gif""",\1\2,display ICON_URI attribute as favicon when available
24 24
,,#### svn diff cleanup
......
26 26
" LAST_MODIFIED="".*?""",,"remove LAST_MODIFIED attributes, which seem to change whenever the favicon is updated and clutter up the svn diff"
27 27
,,#### bookmark text fixes
28 28
"(^(?!.*<H3\b).*
29
<DD>)(?!&quot;|-+$)(?:[^:\n]*? description: )?",\1page's self-description: ,"label page's self-description as such to avoid confusing it with comments added by the bookmark author, who may not agree with it. the page's self-description is in the 1st paragraph(s), when provided. if the bookmark desc starts with "" or a blank line, this is an author-added quotation or comment and not the page's self-description."
29
 *<DD>)(?!&quot;|-+$)(?:[^:\n]*? description: )?",\1page's self-description: ,"label page's self-description as such to avoid confusing it with comments added by the bookmark author, who may not agree with it. the page's self-description is in the 1st paragraph(s), when provided. if the bookmark desc starts with "" or a blank line, this is an author-added quotation or comment and not the page's self-description."
30 30
,,#### bookmark reorganization
31 31
"(?s)(^<DL><p>
32 32
    <DT><H3 [^\n]*
......
36 36
    </DL><p>
37 37
)",\1\3\2,move Bookmarks Toolbar to beginning inside first folder
38 38
"(?s)(?<=PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
39
)<DD>.*?</DD>
39
) *<DD>.*?</DD>
40 40
",,remove Bookmarks Toolbar desc
41 41
"(?<=PERSONAL_TOOLBAR_FOLDER=""true"">)Bookmarks Toolbar(?=</H3>$)",Quick links,rename Bookmarks Toolbar to Quick links
42 42
"^<DL><p>

Also available in: Unified diff