Closed (won't fix)
Project:
Trim HTML
Version:
7.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2014 at 16:21 UTC
Updated:
13 Mar 2014 at 11:33 UTC
Jump to comment: Most recent
Comments
Comment #1
czigor commentedThese two modules do not do the same. https://drupal.org/project/emptyparagraphkiller removes all empty paragraphs from the text. Trim HTML removes trailing empty paragraphs and line breaks.
I searched for a module with this functionality but could not find any.
Comment #2
rv0 commentedI had to take a look at the code to see what was meant by trailing empty paragraphs
Perhaps this part of the code would be suitable info on the project page:
Also, I said "similar" modules, not "identical" ;) Too late now ..
Comment #3
alan d. commentedBoth are modules that use filter formats to trim trailing empty text. Did you think about supplying a patch in the other queue to handle BR? Probably would have been 6 characters or so...
But now it is in the published module domain, it can not be reverted :/
The regex breaks with any attribute, well anything between the P and closing angle bracket. If uppercase characters are used (use /i), if the tag spans multiple lines, ...