Copy pasting from OpenOffice/LibreOffice to Thunderbird overrides unchecked option "Use Paragraph format instead of Body Text by default"
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
People
(Reporter: tbreportbug, Unassigned)
Details
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
| Reporter | ||
Comment 4•8 years ago
|
||
| Reporter | ||
Comment 5•8 years ago
|
||
Updated•8 years ago
|
| Reporter | ||
Comment 6•6 years ago
|
||
https://bugs.documentfoundation.org/show_bug.cgi?id=114501
https://bz.apache.org/ooo/show_bug.cgi?id=127633
I posted this kind of update on the LibreOffice and OpenOffice BugZillas:
The issue might be partly on LibreOffice's/OpenOffice's end. If we have this kind of text:
/START
Text here
Text here
Text here
Text here
Text here
Text here
Text
Text
Text
Text
End.
/END
And then we try to export this message as HTML from LibreOffice, then we get something like this:
<p style="margin-bottom: 0cm; line-height: 100%">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text</p>
<p style="margin-bottom: 0cm; line-height: 100%">Text</p>
<p style="margin-bottom: 0cm; line-height: 100%">End.</p>
But this is what SHOULD be exported from LibreOffice I think, so that everything would work okay:
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text here</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">Text</p>
<p style="margin-bottom: 0cm; line-height: 100%; margin-top: 0cm">End.</p>
To reiterate, the problem with the current system seems to be:
- Paragraphs have default margin-top value. The margin-top value should be 0cm!
Is there something that can be done on Thunderbird's side? Is there at least some work around, until this gets fixed?
Comment 7•6 years ago
|
||
Nothing can be done on Thunderbird's side since we're using the standard Mozilla core editor.
We see many problems with HTML originating from *Office packages, MS Office being the worst offender.
The conclusion is that those office packages just don't produce decent HTML that could be processed in a HTML editor, which is what the TB compose window is. All I can suggest is to install https://addons.thunderbird.net/en-GB/thunderbird/addon/thunderhtmledit/ and fix the HTML manually.
Also, a paragraph is what it is, a paragraph, not a line of text. So having paragraphs with zero margins/padding is a big no-no that will surely cause problems later. It's just that users of office packages still in the year 2019 have a typewriter mentality of the year, well, 1910 (and before, see https://en.wikipedia.org/wiki/Typewriter) where hitting the enter key advances to the next line. Office packages still cater to that taste by default, and there was a big outcry when Thunderbird adopted the paragraph format by default which does have some margin/padding.
Updated•3 years ago
|
Description
•