Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
New lines in Wordpress body texts should be converted to paragraphs
Comment | File | Size | Author |
---|---|---|---|
#8 | wordpress_migrate-new_line_to_paragraph-2927510-8.patch | 3.42 KB | phjou |
#6 | wordpress_migrate-new_line_to_paragraph-2927510-6.patch | 2.32 KB | phjou |
#2 | wordpress_migrate-new_line_to_paragraph-2927510-2.patch | 1.32 KB | DrIPA |
Comments
Comment #2
DrIPA CreditAttribution: DrIPA commentedSee attached patch
Comment #3
DrIPA CreditAttribution: DrIPA commentedComment #4
HongPong CreditAttribution: HongPong at kor group commentedComment #5
HongPong CreditAttribution: HongPong at kor group commentedMy subjective opinion: If possible this should be made configurable so that if someone does not need this filtering effect, it does not happen. However it should be enabled by default. (On the other hand someone may have created their content without wpautop and therefore this would garble their content). Also linebreaks can be interpreted as paragraph breaks depending on Drupal's text format settings. Thank you for submitting this e.ruiter - it is helpful for most use cases.
Comment #6
phjouOk there is a patch adding a filter_autop option in the process plugin and making it configurable through the UI.
Comment #7
phjouIf some people are using #2904545: Import permalink as URL paths you might have a conflict. Just uploading a patch for the conflict.
Comment #8
phjouForgot to keep the new Plugin in the patch.
Comment #9
bserem CreditAttribution: bserem as a volunteer and at Nedatech commentedPatch #8 does work. Given how much of a difference this makes to imported content readability, I'll push this forward. It would be nice to get more people to check this of course.
Comment #10
HongPong CreditAttribution: HongPong as a volunteer and at Feidt Design commentedThe snag here is it would silently fail if filter module is not enabled. imo better if it would at least kick a notification. Or a better notice on the option like "Filter module must be enabled, or this step will be skipped silently." Some tweak of that nature. That's the only issue which jumps at me right now. Thanks so much for hashing this out to work cleanly!