##// END OF EJS Templates
Don't use <p> tags in parsing because the tag cannot be closed inside a tag to...
neko259 -
r750:fa59c3d1 default
parent child Browse files
Show More
@@ -127,7 +127,7 b' def render_reflink(tag_name, value, opti'
127
127
128
128
129 def bbcode_extended(markup):
129 def bbcode_extended(markup):
130 parser = bbcode.Parser(newline='</p><p>')
130 parser = bbcode.Parser()
131 parser.add_formatter('post', render_reflink, strip=True)
131 parser.add_formatter('post', render_reflink, strip=True)
132 parser.add_simple_formatter('quote',
132 parser.add_simple_formatter('quote',
133 u'<span class="multiquote">%(value)s</span>')
133 u'<span class="multiquote">%(value)s</span>')
@@ -139,7 +139,7 b' def bbcode_extended(markup):'
139 u'<span class="strikethrough">%(value)s</span>')
139 u'<span class="strikethrough">%(value)s</span>')
140 parser.add_simple_formatter('code',
140 parser.add_simple_formatter('code',
141 u'<pre><code>%(value)s</pre></code>')
141 u'<pre><code>%(value)s</pre></code>')
142 return '<p>%s</p>' % parser.format(markup)
142 return parser.format(markup)
143
143
144 formatters = [
144 formatters = [
145 QuotePattern,
145 QuotePattern,
@@ -101,7 +101,7 b' body {'
101 visibility: hidden;
101 visibility: hidden;
102 }
102 }
103
103
104 p {
104 p, br {
105 margin-top: .5em;
105 margin-top: .5em;
106 margin-bottom: .5em;
106 margin-bottom: .5em;
107 }
107 }
General Comments 0
You need to be logged in to leave comments. Login now