[drupal-devel] [bug] Line break converter and preformatted text

mathias drupal-devel at drupal.org
Mon Mar 7 14:37:53 UTC 2005


Issue status update for http://drupal.org/node/12369

 Project:      Drupal
 Version:      cvs.tar
 Component:    filter.module
 Category:     bug reports
 Priority:     minor
 Assigned to:  Anonymous
 Reported by:  aam
 Updated by:   mathias
 Status:       patch

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


mathias



Previous comments:
------------------------------------------------------------------------

October 31, 2004 - 12:03 : aam

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


------------------------------------------------------------------------

November 6, 2004 - 11:04 : aam

Okay, I understand the new input format and filter system better now,
but it is still a nice to have feature.


------------------------------------------------------------------------

March 6, 2005 - 22:29 : mathias

It'd be nice to have the line break convertor respect <pre> tags for the
4.6 release.


------------------------------------------------------------------------

March 7, 2005 - 07:38 : Steven

Attachment: http://drupal.org/files/issues/pre.patch (4.46 KB)

Give the attached patch a whirl.





More information about the drupal-devel mailing list