Project

General

Profile

« Previous | Next » 

Revision 8828

lib/Firefox_bookmarks.reformat.csv: labeling page's description: don't match descriptions with a leading blank line as an author comment, because sometimes page descriptions themselves start with a blank line. instead, author comments at the beginning of bookmark descriptions should always start with a " or be preceded by a line containing only hyphens (-). note that it was never reliable to use a blank line for this purpose, because it would be trimmed out upon reimport of the HTML file into Firefox.

View differences:

Firefox_bookmarks.reformat.csv
28 28
",put ICON attributes with favicon contents on their own line so the rest of the line is easier to see
29 29
" LAST_MODIFIED="".*?""",,"remove LAST_MODIFIED attributes, which seem to change whenever the favicon is updated and clutter up the svn diff"
30 30
,,#### bookmark text fixes
31
(?<=^<DD>)(?!&quot;|-*$)(?:[^:\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."
31
(?<=^<DD>)(?!&quot;|-+$)(?:[^:\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 33
"(?s)(^<DL><p>
34 34
    <DT><H3 [^\n]*

Also available in: Unified diff