Closed (fixed)
Project:
Migration Tools
Version:
8.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Sep 2022 at 19:10 UTC
Updated:
16 Nov 2022 at 05:15 UTC
Jump to comment: Most recent
We are using this module to migrate some Taiwanese content. Seemingly, paragraphs are getting stripped win stripCmsLegacyMarkup helper function - specifically the code that removes empty p tags
This shows the regex failing:
https://regex101.com/r/b3TV62/1
As you can see, it matches on a seemingly legit (non-empty) paragraph.
Seems like if we match with unicode the desired behavior is exhibited
https://regex101.com/r/qVLxpV/1
Adjust empty p tag (and strong check) to use unicode
None
None
None
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
AndyThornton commentedComment #4
AndyThornton commentedComment #6
swirtThank you for this contribution. It is part of 8.x-2.5
Comment #7
swirt