Revision 8754
Added by Aaron Marcuse-Kubitza over 11 years ago
Firefox_bookmarks.reformat.csv | ||
---|---|---|
30 | 30 |
,,#### bookmark text fixes |
31 | 31 |
(?<=^<DD>)(?!"|$)(?:[^:\n]*? description: )?,page's description: ,"label page's description as such to avoid confusing it with comments added by the bookmark author, who may not agree with it. the page's 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 description." |
32 | 32 |
,,#### bookmark reorganization |
33 |
"(?<=^<DL><p> |
|
34 |
)((?s).*)(^ <DT><H3 .*PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
|
|
35 |
(?:(?s).*?)
|
|
33 |
"(?s)(?<=^<DL><p>
|
|
34 |
)(.*)(^ <DT><H3 [^\n]*PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
|
|
35 |
.*?
|
|
36 | 36 |
</DL><p> |
37 | 37 |
)",\2\1,move Bookmarks Toolbar to beginning |
38 |
"(?<=PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3> |
|
39 |
)<DD>(?:(?s).*?)</DD>
|
|
38 |
"(?s)(?<=PERSONAL_TOOLBAR_FOLDER=""true"">Bookmarks Toolbar</H3>
|
|
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 |
Also available in: Unified diff
bugfix: lib/Firefox_bookmarks.reformat.csv: refactored regexps to account for Python applying (?s) to the entire regexp, even if it appears inside a () subgroup. the Python behavior is in contrast to the standard regexp behavior used by Java, etc. where (?s) applies only to the subgroup it appears in.