textile / python-textile

A Python port of Textile, A humane web text generator
Other
68 stars 23 forks source link

Incorrect wrap pre-froematted value #47

Closed tynopet closed 7 years ago

tynopet commented 7 years ago

I try to format this value:

pre.. word

another

word

yet anothe word

but get the incorrect output with excess pre tags:

<pre><pre>&lt;pre&gt;&lt;pre&gt;word\n\nanother&lt;/pre&gt;\n\nword&lt;/pre&gt;\n\nyet anothe word</pre></pre>

screen

How to fix it?

ikirudennis commented 7 years ago

This is the same sort of situation as with #45. If you need a more urgent fix, you can use pip install git+https://github.com/textile/python-textile.git@a74bcebb7d6a2618fccf712e81cb1c0d0eabda22#egg=textile to install a version with a fix for both this issue and #45. Thanks for reporting these issues.

tynopet commented 7 years ago

Thank you very much!

tynopet commented 7 years ago

Hello, I fetch you fixes and found this bug:

p. text text

h1. Hello

Rendered textile:

<p>text text</p>

h1. Hello

If I write two new lines after element, textile not processing next tag.

ikirudennis commented 7 years ago

Thanks for providing this update. It's very helpful in improving textile.

tynopet commented 7 years ago

Thank you for fixes.