From e26b6af09b5277711a89ebada8118bd7ab259de3 Mon Sep 17 00:00:00 2001
From: Waylan Limberg
"
+ lines[i] = self.stash.store("
", safe=True)
return lines
def _isLine(self, block) :
@@ -471,7 +471,7 @@ class LineBreaksPreprocessor (Preprocessor):
for i in range(len(lines)) :
if (lines[i].endswith(" ")
and not RE.regExp['tabbed'].match(lines[i]) ):
- lines[i] += "
"
+ lines[i] += self.stash.store("
", safe=True)
return lines
LINE_BREAKS_PREPROCESSOR = LineBreaksPreprocessor()
@@ -735,7 +735,11 @@ class DoubleTagPattern (SimpleTagPattern) :
class HtmlPattern (Pattern):
def handleMatch (self, m, doc) :
- place_holder = self.stash.store(m.group(2))
+ rawhtml = m.group(2)
+ inline = True
+ if rawhtml.startswith("
%s\n
%s\n
" % (HTML_PLACEHOLDER % i), + html + "\n") xml = xml.replace(HTML_PLACEHOLDER % i, html) -- cgit v1.2.3