Indentation fails for multiple lines pasted from text editors
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: signupemail, Unassigned)
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
Started a new e-mail. Pasted text from a text editor (SublimeText). Tries to indent some paragraphs using the indent icon.
Actual results:
Nothing.
When I created a new e-mail, and did not paste any text from my editor, indentation worked.
Expected results:
Indentation.
Please let me know what further information you need. This problem seems to me to be pretty serious. For, it stops one making professional looking, readable e-mails.
Comment 1•7 years ago
|
||
I suggest to install ThunderHTMLedit from https://addons.thunderbird.net/en-GB/thunderbird/addon/thunderhtmledit/ and inspect the HTML.
We don't know what sort of HTML your editor copied to the clipboard and was consequently pasted into the TB editor. As you confirmed yourself, it works without "interference" by pasting. You could also save a draft and attach it as .eml file here.
| Reporter | ||
Comment 2•7 years ago
|
||
This file was produced by 'save as' after ThunderHTMLedit was installed. Even once I had uninstalled that extension, I could not discover how to save the file as .eml.
| Reporter | ||
Comment 3•7 years ago
|
||
The first double space - or alleged double-space - found in the text, by Thunderbird's composition-window search.
Comment 4•7 years ago
|
||
(In reply to signupemail from comment #2)
Created attachment 9050013 [details]
HTML of the text in questionThis file was produced by 'save as' after ThunderHTMLedit was installed. Even once I had uninstalled that extension, I could not discover how to save the file as .eml.
Method #1
Select the email in the Thread Pane.
From the Menu bar or button.
Select File > Save As > File.
The file manager opens for me with the .eml extension already selected for the email I want to save.
Method #2
Select the email in the Thread Pane.
Right click on it to activate the context menu
Select "Save As"
The file manager opens for me with the .eml extension already selected for the email I want to save.
Comment 5•7 years ago
|
||
I don't know that the problem is.
I pasted the HTML given in attachment 9050013 [details] into the HTML tab using ThunderHTMLedit. Then switched back to the edit tab. I then indented the list items as well as the paragraph successfully.
The way indentation works on the paragraph is that it is wrapped in <blockquote> tags.
So if it doesn't work after pasting from Sublime, there's something in the HTML which you haven't reported yet.
Walter already explained how to save messages as .eml files. On Windows you can simple grab the message and drag it onto the desktop or a folder.
I don't know what you mean by "double space", yes, the HTML wraps to the next line there, but it's rendered as one space.
| Reporter | ||
Comment 6•7 years ago
|
||
An affected e-mail, in .eml format.
| Reporter | ||
Comment 7•7 years ago
|
||
Walt, Jorg: thanks.
I attach the file. (Dragging one of the affected messages from my drafts folder, to the desktop, worked. Currently, all my Thunderbird File -> Save As menus shows only 'HTML' or 'All Files'.)
The problem (which I should have specified more fully) is as follows.
-
When I was composing the e-mail (and others containing pasted text), attempts to apply either indentation or deindentation, and be itvia iconbar button, keyboard shortcut, or menu, fail.
-
The same holds for the e-mail when it is reloaded either from my drafts folder or loaded from a .eml file (and in that later case I must 'forward' the e-mail in order to be able to edit it).
-
The problem persists whether I tell SublimeText to use 'Windows' line endings or 'Unix' line endings.
-
Text pasted from the Windows notepad has the same problem.
-
Text pasted from Sublime Text into Thunderbird, on Linux, has the same problem
-
If I combine the pasted text into a single line - and whether it owes to Sublime Text (Windows or Linux) or to Notepad - that indentation and deindentation work.
| Reporter | ||
Updated•7 years ago
|
Comment 8•7 years ago
|
||
Hmm, "File > Save As > File", or just Ctrl+S on the message will save as "mail file" be default, with a filename of subject.eml already suggested.
I've done this. Entered
first line
second line
third line
into Notepad++. Copied and pasted in to a write window. Hit indent, just works.
I used the add-on ThunderHTMLedit to inspect the HTML. After the paste:
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>first line<br>
second line<br>
third line</tt><br>
</p>
</body>
After indenting:
<body text="#000000" bgcolor="#FFFFFF">
<blockquote>
<p><tt>first line<br>
second line<br>
third line</tt><br>
</p>
</blockquote>
</body>
Sorry, I can't see what's not working.
I suggest you install ThunderHTMLedit and show us the HTML.
Looks like your system is malfunctioning: "when it is reloaded either from my drafts folder". That doesn't sound right.
Can you disable all add-ons, see help menu, and try again.
| Reporter | ||
Comment 9•7 years ago
|
||
The same holds for the e-mail when it is reloaded either from my drafts folder or loaded from a .eml file
Well, e-mails that I compose get auto-saved on intervals to a drafts folder. Since I need to revisit a problematic e-mail for this bug report, I do not send the e-mail and I let it persist in draft. Since I had also, for the purposes of attaching the e-mail to this report, saved the e-mail as .eml, I had that file too - and so I tested the problem by reloading that file as well as by working with the draft. Makes sense now?
HTML: as follows and attached.
<!DOCTYPE html><html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>The .dll files here are distributed by Microsoft Corporation as
part of the<br>
Windows Driver Kit (available at<br>
<a class="moz-txt-link-freetext"
href="http://www.microsoft.com/whdc/resources/downloads.mspx">http://www.microsoft.com/whdc/resources/downloads.mspx</a>)
and included here as<br>
permitted by the Microsoft Software License Terms.</p>
<div class="moz-signature"><br>
</div>
</body>
</html>
Disable all add-ons and try again: hold on . .
| Reporter | ||
Comment 10•7 years ago
|
||
| Reporter | ||
Comment 11•7 years ago
|
||
Disabling all add-ons and restarting did not allow the pasted text to be indented.
Updated•7 years ago
|
Comment 12•7 years ago
|
||
Hmm, you changed BMO profile, before you were najoll.
I took the HTML that you supplied and stuck it onto a message via ThunderHTMLedit. Then I indented.
Result, it worked fine, indented with <blockquote>.
<body text="#000000" bgcolor="#FFFFFF">
<blockquote>
<p>The .dll files here are distributed by Microsoft Corporation as
part of the<br>
Windows Driver Kit (available at<br>
<a class="moz-txt-link-freetext"
href="http://www.microsoft.com/whdc/resources/downloads.mspx">http://www.microsoft.com/whdc/resources/downloads.mspx</a>)
and included here as<br>
permitted by the Microsoft Software License Terms.<br>
</p>
</blockquote>
<div class="moz-signature"><br>
</div>
</body>
Sorry, I can't reproduce the problem.
| Reporter | ||
Comment 13•7 years ago
|
||
Aha: if I disable the option 'use paragraph text instead of body text by default', then indentation works - on both Windows and Linux, and for text pasted for SublimeText and for text entered directly into the composition window.
Comment 14•7 years ago
|
||
Without using paragraphs, the indentation works as well, but it doesn't indent the entire paragraph, only the current line.
If you select the inserted lines, they are all indented, result:
<body text="#000000" bgcolor="#FFFFFF">
<blockquote><tt>first line</tt><br>
<tt>second line</tt><br>
<tt>third line</tt></blockquote>
</body>
| Reporter | ||
Comment 15•7 years ago
|
||
I am sorry to add a further comment but I find the following.
If I re-enable paragraph format, restart Thunderbird, and then paste the text from Sublime, indentation still does not work at all - although, admittedly, I see also the following behaviour.
If I re-enable paragraph format, restart Thunderbird, and then paste your HTML, in the HTML editor window supplied by ThunderHTMLedit, over the default HTML, then indentation does work.
Description
•