Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adam-iris opened this issue May 4, 2022 · 0 comments
Open

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

adam-iris opened this issue May 4, 2022 · 0 comments

Comments

@adam-iris
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant