[Libreoffice-bugs] [Bug 111921] New: Textbox: User defined character style not "saved" properly when applied to text in text box ( an automatic-style is created instead)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Aug 20 00:50:53 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=111921

            Bug ID: 111921
           Summary: Textbox: User defined character style not "saved"
                    properly when applied to text in text box (an
                    automatic-style is created instead)
           Product: LibreOffice
           Version: 5.3.5.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: aleclerc at hotmail.com

Description:
Hi!

When creating a textbox, and applying a character style to the text in the
textbox, the style is applied, but "copied" since Libre Office will create an
"automatic-styles" in content.xml instead of using the one describe in
styles.xml.

It would have been intended to have the proper "style-name" from styles.xml
appear in the "span" node instead of an "automatic-style" which is not even
indicating it's parent-style-name.

The other solution would be to at least have the parent-style-name set properly
in the automatic-style for such a case. So there is a way to know the textbox
characters are using a user-defined style.

(This "bug" prevents external softwares analyzing content.xml to understand
that there is a logical relation between the style applied on the text in the
text-box and the style sheet.)

Thank you very much and have a nice day!

Steps to Reproduce:
1. Create a character style with "MyCharacterStyle" with bold.
2. Create a textbox (not a text frame) and add "ABC" as text.
3. Select the text in the textbox and apply the character style
"MyCharacterStyle".
4. Save, close, open the document. The style is no more selected.
5. Open the source file in content.xml, you see the span uses an
automatic-style.
6. Go check the automatic-style, the parent-style-name is not even given.


Actual Results:  
in content.xml you see the span node containing the "ABC" text has an
automatic-style instead of "MyCharacterStyle". The automatic-style also does
not have any parent-style-name.

Expected Results:
The span node containing the "ABC" text should use the "MyCharacterStyle"
defined in styles.xml.

If an automatic-style must be created, the parent-style-name should make a
reference to "MyCharacterStyle" from styles.xml.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170820/f962a45e/attachment-0001.html>


More information about the Libreoffice-bugs mailing list