Closed (fixed)
Project:
Drupal core
Component:
filter.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2004 at 18:03 UTC
Updated:
21 Mar 2005 at 23:15 UTC
Jump to comment: Most recent file
The line break converter damages preformatted text in the pre html clause. It converts line breaks into HTML (i.e. br and p tags) and puts therefore additional line breaks in to pre clause of the resulting page.
The pre html clause is allowed by default in drupal installation (filtered html), so it does not "work as designed" in this case...
Comments
Comment #1
aam commentedOkay, I understand the new input format and filter system better now, but it is still a nice to have feature.
Comment #2
matt westgate commentedIt'd be nice to have the line break convertor respect <pre> tags for the 4.6 release.
Comment #3
Steven commentedGive the attached patch a whirl.
Comment #4
matt westgate commented+1
I tested this patch and it indeed prevents content inside <pre> tags from being double-spaced when the line break convertor is enabled. In otherwards, <pre> works as expected now.
Comment #5
Steven commentedApplied to CVS/HEAD.
Comment #6
(not verified) commented