From: Drew Fisher <drew.m.fisher@gmail.com> Date: Sat, 19 Feb 2011 11:35:30 +0000 (-0600) Subject: Add <table> to the list of format-excluded elements. X-Git-Url: http://git.zarvox.org/shortlog/%7Bgravatar%7D?a=commitdiff_plain;h=8c2e332a00733ce17940d3ce633d589b1af04abf;p=shortlog.git Add <table> to the list of format-excluded elements. Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com> --- diff --git a/shortlog.py b/shortlog.py index a2606d3..806c640 100644 --- a/shortlog.py +++ b/shortlog.py @@ -85,7 +85,7 @@ def makeParas(lines): paragraphs.append("\n".join(thispara)) # wrap paragraphs in <p></p> if they aren't other HTML tags that don't want to be wrapped in <p> tags - return map( lambda x: x if "<ol>" in x or "<ul>" in x or "<pre>" in x else "<p>" + x + "</p>", paragraphs) + return map( lambda x: x if "<ol>" in x or "<ul>" in x or "<pre>" in x or "<table>" in x else "<p>" + x + "</p>", paragraphs) def getFileList(numdays=7):