]> git.zarvox.org Git - shortlog.git/commitdiff
Add <video> to list of non-paragraphing tags.
authorDrew Fisher <drew.m.fisher@gmail.com>
Mon, 19 Mar 2012 05:18:53 +0000 (22:18 -0700)
committerDrew Fisher <drew.m.fisher@gmail.com>
Mon, 19 Mar 2012 05:18:53 +0000 (22:18 -0700)
Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
shortlog.py

index 797b761669a5f8bba7f06fd16506331f056dac12..56a3e0f89070260a0111c3a6dd6eef1035f11589 100644 (file)
@@ -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 or "<table>" 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 or "<video>" in x else "<p>" + x + "</p>", paragraphs)
 
 
 def getFileList(numdays=7):