git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@135
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
if log: log(" unknown charset: `%s' or `%s'" % (parser.charset, current_charset))
title = recode_entities(title, current_charset)
- title = title.replace('\r', '').replace('\n', ' ').strip()
+ parts = [s.strip() for s in title.replace('\r', '').split('\n')]
+ title = ' '.join([s for s in parts if s])
if log: log(" final title : %s" % title)
parser.title = title
return parser