Make the code that cleans up feedparser's return value more thorough --
in particular, turn subclasses of "unicode" into real unicode objects.
+Decode the config file from the system encoding, and escape "define_"d
+strings when they're written to the output file (reported by Cristian
+Rigamonti).
+
- rawdog 2.12
Make rawdog work with Python 2.6 (reported by Roy Lanek).
try:
f = open(filename, "r")
for line in f.xreadlines():
- stripped = line.strip()
+ stripped = line.decode(get_system_encoding()).strip()
if stripped == "" or stripped[0] == "#":
continue
if line[0] in string.whitespace:
itembits = {}
for name, value in feed.args.items():
if name.startswith("define_"):
- itembits[name[7:]] = value
+ itembits[name[7:]] = sanitise_html(value, "", True, config)
title = detail_to_html(entry_info.get("title_detail"), True, config)