https://bugs.documentfoundation.org/show_bug.cgi?id=168325
Bug ID: 168325
Summary: ODF: questionable markup for character style change
tracking
Product: LibreOffice
Version: 26.2.0.0 alpha0+ master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Start a text document and write some text.
Apply a character style (not direct formatting) to a word, e.g. `Emphasis`.
Enable recording change tracking (menu Edit > Track changes).
Apply a different character style to the same word, e.g. `Strong Emphasis`.
Save the document.
Examine the part content.xml. Find the element <text:format-change>, child of
element <text:changed-region> in element <text:tracked-changes>.
The element <text:format-change> has an attribute loext:style-name, whose value
points to an automatic style, likely `T1`. The purpose of the attribute
loext:style-name is to backup the style, that was applied to the portion of
text before its format was changed. Thus the expected value is the common style
`Emphasis`.
LibreOffice corrects the faulty value on opening the document, so that you get
indeed `Emphasis` at the text portion when you reject the change. But the file
format should correctly reflect the situation. And that was, that the portion
has no direct formatting but a common style applied.
Creating an automatic style in this situation is not needed at all. If you
delete the automatic style and set `Emphasis` as value to the loext:style-name,
then LibreOffice opens the file without problems and you can reject or accept
the tracked change.
--
You are receiving this mail because:
You are the assignee for the bug.