Preformatting text can lead to weird 1.5cm spacing



16 years ago
2 years ago


(Reporter: david, Unassigned)


Windows 2000

Firefox Tracking Flags

(Not tracked)



(2 attachments)



16 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030225
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030225

Selecting text and choosing the composition style "Preformat" can cause the text
to be transformed to huge spacing between the lines.

Reproducible: Always

Steps to Reproduce:
1. Make a new mail folder
2. Grab the attachment that I will attach here and overwrite the mail folder
with it.  It will be a .gz compressed text file.
3. Select the message in the folder and copy some complete lines of text from
the message.
4. Open a new message composition window.
5. Click on the first blank line in the message.
6. Paste the text.
7. Highlight that text.
8. Choose the "Preformat" style.
Actual Results:  
The text goes to very big spacing.

Expected Results:  
I would expect the text to appear without the very big spacing.

Comment 1

16 years ago
Created attachment 115647 [details]
gzip compressed text file referenced in this bug description

Comment 2

16 years ago
Created attachment 115652 [details]
here's some html that you can copy from rather than doing that folder business...

Comment 3

16 years ago given the recent attachment, you can start at step 3 except select from
the html attachment instead

Comment 4

16 years ago
This still happens in 1.4.  Every line of text that ends with a <br> is 
surrounded by a separate pair of <pre></pre> tags; the entire paragraph could 
instead be surrounded with <pre></pre> and the <br>'s stripped off.  (See the 
odd behavior for the third line in the sample code, which contains a newline 
character (before the { character) and a <br>.)

If the message is saved and then reopened, the composer window displays the text 
in a much more reasonable fashion, so the wide spacing between lines is entirely 
a glitch of the original paste operation (maybe the <br> is being maintained 
internally on the paste, and then stripped out while saving the file as a 
Ever confirmed: true
Product: MailNews → Core


10 years ago
Assignee: ducarroz → nobody
QA Contact: esther → composition


10 years ago
Product: Core → MailNews Core

Comment 5

2 years ago
Still get big spacing when doing steps on attachment 115652 [details]

Thunderbird 52.0.1 (32-bit)
Windows 7 64-bit
You need to log in before you can comment on or make changes to this bug.