textile/python-textile

Blank lines break <code><pre> blocks

adam-iris opened this issue · 0 comments

Works fine with multiple lines:

>>> print(textile.textile('''<pre><code>Line1\nLine2</code></pre>'''))
<pre><code>Line1
Line2</code></pre>

But a blank line causes the contents to be textile-ized:

>>> print(textile.textile('''<pre><code>Line1\n\nLine2</code></pre>'''))
	<p><pre><code>Line1</p>

	<p>Line2</code></pre></p>

It looks like you can work around this by using bc..:

>>> print(textile.textile('''bc.. Line1\n\nLine2'''))
<pre>Line1

Line2</pre>