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

dww’s picture

Hrm, 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.

JohnAlbin’s picture

This 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. :-/

apaderno’s picture

Status: Active » Postponed (maintainer needs more info)

I still get the same effect as reported before.

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

Is this an issue with Code filter, or does Drupal.org need to update the installed version of the module?

apaderno’s picture

Title: Problem with urls on end of line in code tag » Problem with URLs on end of line in code tag
Project: Drupal.org site moderators » Code Filter
Version: » 6.x-1.x-dev
Component: Other » Code
Status: Postponed (maintainer needs more info) » Active

I am moving the report to the queue of the project handling such filter.

Cameron Tod’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Postponed
Issue tags: +Needs tests

I 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.