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

            Bug ID: 156321
           Summary: FORMATTING: Styles lost on nested <span> elements in
                    content
           Product: LibreOffice
           Version: 7.4.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: libreoff...@mrphlip.com

Description:
I'm working on software that generates odt files, and recently we have been
having an issue where some styles aren't coming across correctly in
LibreOffice.

In particular, if we have two <text:span> nested elements, the styles in the
outer span are not necessarily applied to text inside the inner span. This
seems to be happening when *all* the text is inside the inner span, I suspect
something is trying to collapse the two spans together into a single element
and some of the styles are getting lost in the process.

See the attached sample, which I've minimised as much as I can... in the first
paragraph we have a span with bold formatting, and inside that a span with a
font set... opening that in LO, the text has the specified font, but is not
bold. In the second paragraph there is extra text between the two spans, and in
this case the bold formatting is applied appropriately.

Is there something wrong with the document here, that we aren't generating it
correctly? Or is this a bug in LO?

It was working correctly in 7.3.7.2, with both paragraphs coming through in
bold, but the issue is reproducible in 7.4.7.2 and 7.5.4.2.

Steps to Reproduce:
1. Open the attached odt file

Actual Results:
The first paragraph is not in bold, while the second paragraph is bold.

Expected Results:
Both paragraphs are in bold.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to