https://bugs.documentfoundation.org/show_bug.cgi?id=155641
Bug ID: 155641
Summary: Writer does not preserve tabs
Product: LibreOffice
Version: 7.3.2.2 release
Hardware: ARM
OS: macOS (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
I created a document in Writer and exported it as an HTML document. In the
document was some code that had been indented using tabs. When the document is
exported as HTML the code looses all its indentations.
Steps to Reproduce:
1.Create a new text document.
2.Enter each word on their own line: One Two Three
3.Indent the "Two" text by pushing the tab key.
4.Go to File->Export.
5.Select XHTML under File Type.
6.Save the document.
7.Open the document using a web browser (I used Safari).
Actual Results:
The "Two" is not indented correctly. It looks like there is only a space
between the left margin and the "Two".
Expected Results:
The "Two" text should be indented by the apparent size of the indent in the
Writer document.
Reproducible: Always
User Profile Reset: No
Additional Info:
It looks like encoder does not consider tabs at all. Here is the code that was
created:
</style></head><body dir="ltr" style="max-width:8.5in;margin-top:0.7874in;
margin-bottom:0.7874in; margin-left:0.7874in; margin-right:0.7874in; ">
<p class="P1">One</p>
<p class="P1"><span> Two (should be indented)</span></p>
<p class="P1">Three</p>
</body></html>
The line "Two (should be indented)" has no code to even try to indent the text.
I believe that tabs should be translated into the margin-left CSS attribute
with a value that approximates the size of the tab in the writer document.
--
You are receiving this mail because:
You are the assignee for the bug.