Package: mnemosyne-blog Version: 0.12-2 Severity: normal This line occurs as first line of every rendered layout file, including the Atom feed file which is not HTML at all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Firefox/Iceweasel seems to tolerate it and display its "standard" feed subscription page, but I wouldn't be surprised if other browsers were baffled. The reason, I think, is in muse.py: class KidTemplate: def __init__(self, filename, kwargs): module = kid.load_template(filename) self.template = module.Template(assume_encoding='utf-8', **kwargs) def __str__(self): return self.template.serialize(output='xhtml-strict') def __getattr__(self, attr): return getattr(self.template, attr) The output parameter to __str__ needs to depend on the filename, if it is *.xml then it needs to change accordingly. Which means it needs to be computed in __init__ and stored. -- System Information: Debian Release: 7.8 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 3.10.86.5 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages mnemosyne-blog depends on: ii python 2.7.3-4+deb7u1 ii python-kid 0.9.6-2 Versions of packages mnemosyne-blog recommends: ii python-docutils 0.8.1-8 mnemosyne-blog suggests no packages.