Ticket #11242 (confirmed Feature Request)
web_intelligent_plain_text_to_html transform: insert <p> instead of double <br/> for new paragraph
Reported by: | jenskl | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | |
Keywords: | Cc: |
Description
in plone.intelligenttext-1.0.3-py2.4.egg/plone/intelligenttext/transforms.py it says:
# Finally, make \n's into br's
text = text.replace('\n', '<br />')
I think before this, there should be something like
# At first, make each double line break into a new paragraph
# close old paragraph, beginn new one
text = text.replace('\n\n', '</p><p>')
the text itself should be prefixed with a "<p>" then at first, and finally subfixed with a "</p>"
This important, because "<br /><br/>" looks different than a paragraph, which is also the intention of having double line breaks in text files.
Change History
Note: See
TracTickets for help on using
tickets.