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

CommentFileSizeAuthor
#3 pre.patch4.46 KBSteven

Comments

aam’s picture

Category: bug » feature
Priority: Normal » Minor

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

matt westgate’s picture

Category: feature » bug

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

Steven’s picture

StatusFileSize
new4.46 KB

Give the attached patch a whirl.

matt westgate’s picture

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

Steven’s picture

Applied to CVS/HEAD.

Anonymous’s picture