OS: Windows 11 Pro, 64-bit
LibreOffice Writer: 7.4.5.1 (x64)
File Save format: odt
EDIT: Steps to reproduce the problem:
- Create or open an ODT Writer document that already has some paragraph Headings used in the document.
- Copy some code from a SQLQuery window in SQL Server Management Studio (SSMS) version 19.0.1.
- Paste into the ODT Writer document. Not only does the new text come in formatted, but this action also screws up the appearance of the Headings that previously existed in the document; those Headings are all now indented.
I understand that normal paste copies in the formatting, so that the pasted text preserves tables, colours, etc. But changing the paragraph style for Headings so that the entire remainder of the document is changed is wrong behaviour; I am pretty sure most users would say this should not happen.
My various documents behaved correctly until about a month ago.
Now, in various Writer documents, all paragraph headings get automatically adjusted to have a TAB at the beginning. This happens for new heading I am adding, and also automatically alters all headings throughout an existing file.
None of the headings have numbers at the front; sample heading is: Structures
I created the headings with the “Set Paragraph Style” dropdown list from the toolbar, not with a numbering toolbar button.
I have checked in Styles > Manage Styles > the Heading 1 style > Modify > Indents & Spacing. In this dialog, the Indent Before text is correctly set at 0.00 cm.
I did not do anything to ask Writer to automatically add these tabs in front of every header throughout every document I open. This is extremely annoying.
Although less annoying, I notice that there is now also a thin vertical gray line at the beginning of the header text for every header. Deleting the TAB and the first letter of the header text does not remove this thin line.
This seemed to start after I cut-and-pasted some text from Word. That should not be able to alter the styles in more than at most the current document however; allowing this action to alter the template used for all documents is virus-like behaviour.
How do I stop this auto-add of tabs before every heading? Thank you.
EDIT: Work around to remove this infected setting:
Save the document as RTF (Rich Text Format) from within Writer. Then close and re-open the new RTF file. Then save that back as ODT.
Now the new ODT file does not automatically add TABs anymore. So there is some setting in LibreOffice that gives this behaviour, which RTF apparently does not support and therefore RTF stripped that setting out.