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

Already on GitHub? Sign in to your account

linebreaks #7

Sepero opened this Issue Aug 29, 2012 · 5 comments


None yet
2 participants

Sepero commented Aug 29, 2012

Sorry if this is more of a question. Is there an easy way to keep double line breaks as a paragraph <p> and allow single linebreaks to output <br>?


jedie commented Aug 30, 2012

You can switch between blog-style and wiki-style line breaks, see here: https://code.google.com/p/python-creole/wiki/additions#line_break

Is that what you need?


Sepero commented Aug 31, 2012

Oh wow, my apologies. I'm switching to your creole engine from the "oink" engine (because of the python-creole additional html sets), and I see now that it does line breaks by default. This appears to be against the Creole protocol, but I think they are in error, and perhaps you agree?

IMO, the arguments against line breaks are very weak. I would say the best argument I've seen is for consistency with HTML and some programs (though inconsistency with other programs).

I would say the argument for having line breaks is plain and simple: When I press "Enter", that means newline (Not Spacebar). I can only imagine that anyone who thinks otherwise is likely computer illiterate, or so computer proficient that they've successfully adopted a poor habit. There are specific reasons HTML doesn't recognize "Enter" as newline, and those reasons do not apply to wiki markup.

Thank you for the quick reply, and the info link.

Where can I find your contact for possible future questions?

@jedie jedie closed this Aug 31, 2012


Sepero commented Sep 1, 2012

For people to think more clearly on the change, I would like to offer to a conceptual correction to creole2html/rules.py, if I may.
< # use natural style line breaks (every line break would be converted into <br />)
> # use blog style line breaks (every line break would be convertet into <br />)
< # use wikipedia style line breaks, separate lines with one space
> # use wiki style line breaks, seperate lines with one space


jedie commented Jan 2, 2013

done: 1161682

jedie added a commit to jedie/python-creole-old that referenced this issue Apr 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment