Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is problem with urls in <code> when they are on the end of line.
Example:
This link has one empty space on end of line: http://drupal.org
This link is on end of line: http://drupal.org
First word on this line and <br> is added to link
Comments
Comment #1
dwwHrm, yeah, weird. I can't reproduce this on a local test site, so it indeed seems like it belongs here in the webmasters queue, not in the codefilter queue. Haven't looked any deeper than that, but I wanted to add this data point.
Comment #2
JohnAlbinThis is caused by the order of the filters in “Filtered HTML” input format on d.o.
I can reproduce the bug if I configure my test site with a copy of d.o.’s Filtered HTML input format. Also, if codefilter is placed first, the problem disappears.
However, there are so many edge cases with input filtering ordering, I don’t want to re-create issues that may have already been fixed. Especially since I wasn’t around when the original filter order was made. But from my meager testing, codefilter seems to work best when it’s first.
I definitely need to create some unit tests for codefilter. :-/
Comment #3
apadernoI still get the same effect as reported before.
Is this an issue with Code filter, or does Drupal.org need to update the installed version of the module?
Comment #4
apadernoI am moving the report to the queue of the project handling such filter.
Comment #5
Cameron Tod CreditAttribution: Cameron Tod commentedI have implemented basic unit tests for Code Filter but I need to make some that deal with filter ordering as it's an issue that comes up and again and again.