Skip to content

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

@adam-earthscope

Description

@adam-earthscope

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions