Summary: | Libre Office Writer breaks the text adding unwanted <span> tags in the content.xml file | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Tyco72 <btv2000> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | aron.budea, rb.henschel |
Priority: | medium | Keywords: | needsDevAdvice |
Version: | 6.3.0.4 release | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=145119 https://bugs.documentfoundation.org/show_bug.cgi?id=132447 https://bugs.documentfoundation.org/show_bug.cgi?id=148543 https://bugs.documentfoundation.org/show_bug.cgi?id=146458 |
||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Attachments: |
Example .odt file
Screenshot odt file v1.2 Screenshot ODF v1.2 |
Description
Tyco72
2021-05-23 09:21:31 UTC
Created attachment 172261 [details]
Example .odt file
Created attachment 172262 [details]
Screenshot
Effect of the unwanted <span> tags
The problem is likely caused by officeooo:rsid attributes. Those are written to improve change tracking. You can avoid them with two methods: A) Go to menu Tools > Options > Writer > Comparison and uncheck the option "Store it when changing the document". To remove the attributes from existing documents, you need to save them once in format "1.3" (method B) or remove the attributes manually in the file. B) Save in "ODF 1.3". Unfortunately this does not only avoid this attribute but all LibreOffice extensions. And LibreOffice has a lot of extensions. To change the file format for saving go to menu Tools > Options > Writer > Load/Save and select the version "1.3" from the drop-down list 'ODF format version:'. Please report back whether removing the officeooo:rsid attributes solves the problem. I think I know what he is talking about. If I write text in LibreOffice Writer (I do this since I do word corrections with Writer), then I copy and paste the text into certain websites, websites where I am responding to someone, it posts lots of tags, span and such and lots of newline characters. I use Firefox. It doesn’t happen with all websites. It happens with patheos. The solution is to do Ctrl-Shift-V, which removes the formatting. Or, paste the text into a simple text editor, like Notepad and Kate, and then copy from there and paste it to the website. (In reply to krumple_sodium from comment #4) > The solution is to do Ctrl-Shift-V, which removes the formatting. > Or, paste the text into a simple text editor, like Notepad and Kate, and > then copy from there and paste it to the website. Hi, thank you for the hint, but it is not a viable solution. If I transform the text into plain text, I loose also all the other format tags that I need to keep (bold, text, color, underline, hyperlink, etc.) MS Office has not this problem. I will do some tests disabling the option "Store it when changing the document" and I will let know. This probably isn't a regression. (In reply to Regina Henschel from comment #3) > The problem is likely caused by officeooo:rsid attributes. Those are written > to improve change tracking. You can avoid them with two methods: > A) Go to menu Tools > Options > Writer > Comparison and uncheck the option > "Store it when changing the document". To remove the attributes from > existing documents, you need to save them once in format "1.3" (method B) or > remove the attributes manually in the file. > B) Save in "ODF 1.3". Unfortunately this does not only avoid this attribute > but all LibreOffice extensions. And LibreOffice has a lot of extensions. To > change the file format for saving go to menu Tools > Options > Writer > > Load/Save and select the version "1.3" from the drop-down list 'ODF format > version:'. > > Please report back whether removing the officeooo:rsid attributes solves the > problem. Hello. I could some tests, but not too much intensively: - Disabling the option in Tools > Options > Writer > Comparison "Store it when changing the document" it seem so reduce the amount of unwanted line breaks, but not before and after the words with different colors or in bold. - Saving the document in format ODF 1.2 not extended, (on LO 6.4 I have not V 1.3), it cleans some unwanted line breaks, but not before and after the words formatted with different color "star clusters" or some word in bold "today". I will attach the file saved in ODF 1.2 and the screenshot. Created attachment 172303 [details]
odt file v1.2
Created attachment 172304 [details]
Screenshot ODF v1.2
[Automated Action] NeedInfo-To-Unconfirmed I would like to know more about this error. Also share some ideas to fix this. I need a blog post like https://technoblademerch.co/. This guide is good for content writers. Thanks for the strategy and i implement it on my top immigration consultants in dubai for canada website : https://zeevistaadvisors.com/ I have implemented the same in https://www.thechicbeautybar.com/ waiting for results. (In reply to Tyco72 from comment #7) > (In reply to Regina Henschel from comment #3) > Hello. I could some tests, but not too much intensively: > - Disabling the option in Tools > Options > Writer > Comparison "Store it > when changing the document" > it seem so reduce the amount of unwanted line breaks, but not before and > after the words with different colors or in bold. In case of changing character styles inside a paragraph such <span> elements are essential. That is the necessary markup to describe a change in character style. (In reply to Regina Henschel from comment #14) > In case of changing character styles inside a paragraph such <span> elements > are essential. That is the necessary markup to describe a change in > character style. Thank you for the info. In which LO version has the bug been fixed? But MS Office had not that problem with span tags, also when changing styles (bold or color, for example). Or at least it didn't produce unwanted returns in the text. |