# HG changeset patch # User dukebody # Date 1256562747 -3600 # Node ID 53a382ea07aa77aa3b6cfe6041864f6938725ffb # Parent 56eed78c439515a076677cedaca09408fe01fc51 Add option to the html parser to try to avoid empty nodes. Hope it makes any difference. :) diff -r 56eed78c4395 -r 53a382ea07aa web/hgbook/converter.py --- a/web/hgbook/converter.py Mon Oct 26 13:28:29 2009 +0100 +++ b/web/hgbook/converter.py Mon Oct 26 14:12:27 2009 +0100 @@ -22,7 +22,7 @@ except IndexError: raise IndexError("Usage: %s " % __file__) -tree = etree.parse(filename, html.HTMLParser()) +tree = etree.parse(filename, html.HTMLParser(remove_blank_text=True)) root = tree.getroot() body(root)[0].set('id', doc_id)