From 0115a854ee709025539aa8498947dddb0ca04ad0 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Thu, 11 Dec 2008 04:44:38 +0100 Subject: [PATCH] Add a few more HTML pass-through tags; fix double newlines. --- geekigeeki.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index 1e2b065..1221e70 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -519,7 +519,7 @@ class WikiFormatter: + r"|(?P\[\[([^\s\|]+)(?:\s*\|\s*([^\]]+)|)\]\])" # Inline HTML - + r"|(?P<(/|)(br|hr|div|span|form|iframe|input|textarea|a))" + + r"|(?P<(/|)(br|hr|div|span|form|iframe|input|textarea|a|img|h[1-5])[^>]*>)" + r"|(?P[<>&])" # Auto links (LEGACY) @@ -565,7 +565,7 @@ class WikiFormatter: print '

' else: indent = indent_re.match(self.line) - print self._indent_to(len(indent.group(0))) + print self._indent_to(len(indent.group(0))) , print re.sub(scan_re, self.replace, self.line) if self.in_pre: print '' -- 2.25.1