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

Repeating list modifiers output incorrect HTML #4

Open
aeby opened this issue Sep 27, 2011 · 2 comments
Open

Repeating list modifiers output incorrect HTML #4

aeby opened this issue Sep 27, 2011 · 2 comments

Comments

@aeby
Copy link

aeby commented Sep 27, 2011

If the input is something like this:

text="First line\n\n** Point 1\n* Point2\nLast line"
print textile.textile_restricted(text)

The output looks like this:

<p>First line</p>

<p> <ul>
    <li>Point 1</li>
</ul></li>
<ul>
    <li>Point2</li>
</ul><br />Last line</p>

Its the same for #, - and *. The behavior is the same for two or any more repeating.

@hupf
Copy link
Contributor

hupf commented Feb 20, 2012

Can be reproduced on http://www.textism.com/tools/textile/

sebix pushed a commit that referenced this issue Feb 6, 2016
should fix issue #4
@sebix
Copy link
Owner

sebix commented Feb 6, 2016

Currently the code gives this:

>>> print(textile.textile_restricted(text))
    <p>First line</p>

    <p>** Point 1
* Point2<br />
Last line</p>

Is this what you would expect? But http://txstyle.org/try/ also gives the simple list.

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

3 participants