Skip to content

Blank lines break <code><pre> blocks #80

Open
@adam-iris

Description

@adam-iris

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions