Bug 69386 - Index entry terms sometimes trigger random style change (italic or bold)
Summary: Index entry terms sometimes trigger random style change (italic or bold)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 4.1.1.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-15 16:49 UTC by Hazel Russman
Modified: 2014-01-30 10:48 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
one word in italic make paragraph bad (117.08 KB, image/tiff)
2013-09-15 18:17 UTC, Andrey Perensky
Details
Document showing the wrong behaviour (38.08 KB, application/vnd.oasis.opendocument.text)
2013-09-16 16:22 UTC, sophie
Details

Description Hazel Russman 2013-09-15 16:49:12 UTC
The problem seems to occur randomly when the chosen index entry is different from the actual word(s) in the text. A switch to italics or bold is sometimes triggered and may continue for several words or even lines.

This is real, not a view artefact. It survives exporting the page to pdf. The unwanted styling can be removed by using the bold or italic button (but not by "Clear direct formatting"). However, when the document is filed and reopened, the unwanted styling comes back, always in the same places.

If I delete the index entry, the unwanted styling disappears.

The document was created in LO 4.0, but the problem persists when I open it in LO 3.5.
Comment 1 Andrey Perensky 2013-09-15 18:17:08 UTC
Created attachment 85875 [details]
one word in italic make paragraph bad
Comment 2 sophie 2013-09-16 16:22:51 UTC
Created attachment 85924 [details]
Document showing the wrong behaviour

Hazel sent me a sample document allowing to reproduce the bug. I use version 4.1.2.1 and confirm the problem with italic and bold triggered in the text. Sophie
Comment 3 sophie 2013-09-16 16:23:38 UTC
Lowering the priority (no data loss, workaround) and set the bug to new - Sophie
Comment 4 sophie 2013-09-16 16:25:02 UTC
(In reply to comment #1)
> Created attachment 85875 [details]
> one word in italic make paragraph bad
Andrey, your attachment doesn't show the problem exposed by Hazel. If this is another problem, please fill another issue. Sophie
Comment 5 Owen Genat 2014-01-30 10:35:18 UTC
(In reply to comment #2)
> Hazel sent me a sample document allowing to reproduce the bug. I use version
> 4.1.2.1 and confirm the problem with italic and bold triggered in the text.

There appears to be extensive use of overriding formatting (paragraph style > character style > direct formatting) in that attachment. The document may therefore not be the best example, although it /may/ still be an issue. I am not clear on what is expected behaviour given this type of formatting.

To be clear, the italic issue is displayed on the 1st page in the 4th paragraph beginning "The widespread occurrence ..." and the bold issue is displayed on the 2nd page in the 2nd paragraph beginning "The simplest desktops ...".

Opening the ODT with an archive manager and examining the XML I can see these style entries (styles.xml):

<style:style style:name="Emphasis" style:family="text">
    <style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic"/>
</style:style>
<style:style style:name="file" style:family="text">
    <style:text-properties fo:font-weight="bold" style:font-size-asian="10.5pt"/>
</style:style>

These are both character styles (for italic and bold respectively) and yet they have been applied to the entire text e.g., in content.xml the 1st paragraph on the 1st page is defined:

<text:p text:style-name="Standard">
    <text:span text:style-name="Emphasis">
        <text:span text:style-name="T3">forces users to buy a new computer every time a new version comes out. That is certainly not what users want! Instead it’s very much what the computer manufacturers want, and Microsoft gives it to them to ensure that they will go on putting Windows onto every box they sell. Microsoft also frequently makes arbitrary and sweeping changes to the user interface, with little concern for whether users like it or not. Windows 8 is a particularly crass example.
        </text:span>
    </text:span>
</text:p>

The inner (T3) direct formatting is overriding the Emphasis character style, which in turn is overriding the Standard paragraph style. Where the two alphabetical marks appear these inner direct formatting elements (e.g., T3 in the example shown) are being lost and so the text is reverting to the character style in effect on that paragraph (either italic or bold) for the remainder of the text.

"Clear direct formatting" does not remove character styling, so what Hazel describes makes sense.
Comment 6 Owen Genat 2014-01-30 10:48:36 UTC
I opened the attached ODT under Ubuntu 10.04 x86_64 using:

- v3.3.0.4 OOO330m19 Build: 6
- v3.4.6.2 OOO340m1 Build: 602
- v3.5.7.2 Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b
- v3.6.7.2 Build ID: e183d5b
- v4.0.6.2 Build ID: 2e2573268451a50806fcd60ae2d9fe01dd0ce24
- v4.1.4.2 Build ID: 0a0440ccc0227ad9829de5f46be37cfb6edcf72

All versions exhibit the same existing visual change (i.e., reversion to italic/bold at the respective points indicated), which merely indicates they are all observing the underlying markup correctly. Arch/Platform set to All/All. Version left as-is because I have not tested the inserting behaviour.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.