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

--- Comment #10 from Johannes <[email protected]> ---
By chance I found out that this behaviour has something to do with the
PrettyPrinting option that can be found in the experts options.

I'm rather sure that I never changed any of these expert options in the past,
but für what reason ever this PrettyPrinting option was set to True. I changed
it to False and opened an existing spreadsheet where newlines and spaces were
inserted into the titles of the diagrams.

I manually removed all overfluous newlines and spaces from the titles and
stored the document. When reopening it no more newlines and spaces were
inserted into the titles. And when inspecting the ODS document with 7-zip I
found that the "content.xml" file in the "Object 1" folder consists of two
lines only, the first line stating that it is a XML file and the second line
holding the entire content.

IMO the setting PrettyPrinting = True should not cause the modification of the
diagram titles as it does. Maybe the example I've given before

      <chart:title svg:x="8.059cm" svg:y="8.019cm" chart:style-name="ch2">
       <text:p>
        <text:span text:style-name="T1">Label</text:span></text:p>
      </chart:title>

should be pretty printed as follows:

      <chart:title svg:x="8.059cm" svg:y="8.019cm" chart:style-name="ch2">
       <text:p><text:span text:style-name="T1">Label</text:span></text:p>
      </chart:title>

At least with the "</text:p>" the pretty printing was NOT done, otherwise it
would have been placed in a separate line (thus adding even more newlines and
spaces after the title).

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

Reply via email to