Ticket #11242 (confirmed Feature Request)

Opened 5 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by davisagli

  • Component changed from Infrastructure to General

comment:2 Changed 4 years ago by kleist

  • Status changed from new to confirmed

comment:3 Changed 4 years ago by kleist

  • Milestone set to 4.x
Note: See TracTickets for help on using tickets.