https://bugs.documentfoundation.org/show_bug.cgi?id=98446
--- Comment #12 from LibreTraining <[email protected]> ---
I have determined one setting in the settings.xml file which appears to cause
the issue.
Using your demo files:
- Hide whitespace grayed out.odt
- Hide whitespace possible.odt
I set the LO advanced setting to PrettyPrint the XML files.
Then I extracted the contents of the ODT files so I could compare them.
Then I tried to make the files as similar as possible.
- deleted all custom styles
- deleted all direct formatting
- applied default style to all
- reset document properties
Then I extracted the files.
Ran the compare - found 4 XML files with differences
Replaced the XML files one-by-one to see which one fixed the issue.
When the settings.xml was copied - the issue went away.
So I then replaced each difference line-by-line.
One setting, ViewLayoutColumns, brought back the Hide Whitespace function.
>From ODT file: hide whitespace grayed out.odt
File: settings.xml
<office:document-settings
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0"
xmlns:ooo="http://openoffice.org/2004/office" office:version="1.2">
<office:settings>
<config:config-item-set config:name="ooo:view-settings">
...
<config:config-item-map-indexed config:name="Views">
<config:config-item-map-entry>
...
<config:config-item config:name="ViewLayoutColumns"
config:type="short">0</config:config-item>
>From ODT file: hide possible.odt
<config:config-item config:name="ViewLayoutColumns"
config:type="short">1</config:config-item>
So when I changed ViewLayoutColumns from 0 to 1 - the issue went away!
To confirm I went back to the original hide_whitespace_grayed_out.odt file and
changed just that line.
It worked.
To confirm I went back to the GS50-GettingStartedLO.odt I first mentioned
above.
In the settings.xml file I changed ViewLayoutColumns to 1.
It worked.
Sooooo ... could some knowledgable developer please figure-out what is
happening.
- Why is ViewLayoutColumns getting set to 0?
- Why does that disable Hide Whitespace?
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs