sebix / python-textile

A Python port of Textile, A humane web text generator
https://github.com/textile/python-textile/
Other
62 stars 43 forks source link

2.1.5 : no longer possible to opt out of paragraph wrapper #3

Closed nmartini closed 8 years ago

nmartini commented 13 years ago

in previous versions a leading space would prevent the text from being wrapped in a paragraph tag. 2.1.5 seems to have broken this.

chrisdrackett commented 13 years ago

as far as I know the behavior you describe isn't valid textile. If you find some documentation of this, reopen the issue.

nmartini commented 13 years ago

http://textile.thresholdstate.com/ http://pygments.org/demo/1101/

using it in our codebase for inline variables that need styling without a paragraph wrapping it (

breaks layout). I reverted back to textile 2.1.4 for our project, we're good now.

On Tue, Sep 20, 2011 at 2:46 PM, Chris Drackett reply@reply.github.com wrote:

as far as I know the behavior you describe isn't valid textile. If you find some documentation of this, reopen the issue.

Reply to this email directly or view it on GitHub: https://github.com/chrisdrackett/python-textile/issues/3#issuecomment-2150237

chrisdrackett commented 13 years ago

Thanks, I'll look into this.

nmartini commented 13 years ago

To be honest, it does seem like a weird way of opting out of the paragraph wrapper, I totally sympathize with the idea of it seeming hacky or unofficial. Nonetheless, we need to be able to do that somehow, and it was the only way I could find.

Hey thanks for maintaining textile in here, love it. :)

On Tue, Sep 20, 2011 at 3:00 PM, Chris Drackett reply@reply.github.com wrote:

Thanks, I'll look into this.

Reply to this email directly or view it on GitHub: https://github.com/chrisdrackett/python-textile/issues/3#issuecomment-2150375

sebix commented 8 years ago

Seems to be fixed:

>>> print(textile.textile('a\n\n b', auto_link=True))
    <p>a</p>

 b