Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
filter.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2018 at 18:54 UTC
Updated:
1 May 2023 at 12:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
loopduplicate commentedHere's a patch for D7.
Might need a test.
Needs D8 version.
Comment #4
loopduplicate commentedDarn. I'm working on it.
Comment #5
loopduplicate commentedHere's a test and a new patch.
Comment #7
loopduplicate commentedThis passes tests but something appears wonky. Marking as needs work for now.
Comment #8
emacoti commentedI was testing the latest patch and saw the wonky behavior. After some more testing and debugging I found that the line 1750 have an issue with the regular expression. Fixed so it recognize both tags correctly. After some testing I can see it working fine with the fix.
Comment #9
emacoti commentedAttached the patch.
Comment #10
daggerhart commentedThis applies cleanly and solves the issue.
I pasted the test code into 2 sites, one with the patch applied and one without.
Without Patch:
With Patch:
Thanks!
Comment #11
poker10 commentedThanks for reporting this. This is not in D10 yet, therefore according to the backport policy, we must postpone this on: #2350049: filter_autop() returns <br /> but should return <br> for HTML5
In the meantime, we can finish the D10 backport to include all other HTML5 block tags, see: #3005630: Port _filter_autop() changes from D8 to D7