Skip to content

Repeating list modifiers output incorrect HTML #4

Open

Description

@aeby

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.

Activity

  1. hupf commented on Feb 20, 2012

    @hupf
    Contributor
  2. added a commit that references this issue on Feb 6, 2016
  3. sebix commented on Feb 6, 2016

    @sebix
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions