git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@118
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
if self.log: self.log(" no charset in Content-Type header")
if content_type == "text/html":
parser = parse_html(fname, charset, self.log)
- title = parser.title.replace('\r', '').replace('\n', ' ').strip()
- bookmark.real_title = parser.unescape(title)
- if self.log: self.log(" final title : %s" % bookmark.real_title)
+ bookmark.real_title = parser.title
if parser.refresh:
refresh = parser.refresh
try:
except LookupError:
if log: log(" unknown charset: `%s' or `%s'" % (parser.charset, current_charset))
- parser.title = recode_entities(title, current_charset)
+ title = recode_entities(title, current_charset)
+ title = title.replace('\r', '').replace('\n', ' ').strip()
+ if self.log: self.log(" final title : %s" % title)
+ parser.title = title
return parser