Description: meta.xml is not pretty printed when /org.openoffice.Office.Common/Save/Document PrettyPrinting is set to true. Steps to Reproduce: 1. Follow instructions [here](https://help.libreoffice.org/Common/XML_File_Formats) and set Tools – Options – LibreOffice – Advanced – Expert Configuration) by setting the property /org.openoffice.Office.Common/Save/Document PrettyPrinting to true. 2. Open the attached file, make some changes may and save it. 3. Unzip the ODT file and examine the meta.xml Actual Results: meta.xml should be pretty printed. Unfortunately, it is not. Expected Results: meta.xml should be pretty printed. Reproducible: Always User Profile Reset: No Additional Info: As the owner of GNU Emacs' Org-mode to ODT exporter (see https://github.com/kjambunathan/org-mode-ox-odt), I often examine the XML of all component files: content.xml, styles.xml, manifest.xml, meta.xml etc. While the XML of all other files are pretty printed, the XML of meta.xml that never gets pretty printed.
Created attachment 151316 [details] Custom Properties.odt: Sample ODT file where meta.xml is not pretty printed
Created attachment 151317 [details] screenshot of meta.xml (actual vs expected). Actual one on top window. Expected one (as produced by `xmllint --format` ) is on the bottom
kjambunathan@debian:~$ dpkg -l | grep libreoffice-writer ii libreoffice-writer 1:6.1.5-3 amd64 office productivity suite -- word processor kjambunathan@debian:~$ uname -a Linux debian 4.19.0-5-amd64 #1 SMP Debian 4.19.37-1 (2019-05-05) x86_64 GNU/Linux
(In reply to Jambunathan K from comment #0) > Description: > meta.xml is not pretty printed when > /org.openoffice.Office.Common/Save/Document PrettyPrinting is set to true. I'm not an experct in this topic, but th help page only says something about PrettyPrinting and content.xml. But perhaps wiki-page is unclear. I opened meta.xml from an own file and couldn't see a difference (I used Internet Explorer).
Jambunathan, a new major release of LibreOffice is available since this bug was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
(In reply to Dieter Praas from comment #5) > Jambunathan, a new major release of LibreOffice is available since this bug > was reported. Could you please try to reproduce it with the latest version > of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ > ?I have set the bug's status to 'NEEDINFO'. Please change it back to > 'UNCONFIRMED' if the bug is still present in the latest version. This issue still exists in ~$ dpkg -l | grep libreoffice-writer ii libreoffice-writer 1:6.3.4-2 amd64 office productivity suite -- word processor ~$ uname -a Linux debian 5.4.0-2-amd64 #1 SMP Debian 5.4.8-1 (2020-01-05) x86_64 GNU/Linux This is how the `meta.xml` looks like <?xml version="1.0" encoding="UTF-8"?> <office:document-meta xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" office:version="1.2"> <office:meta><meta:creation-date>2019-05-12T07:44:34.121843196</meta:creation-date><meta:editing-cycles>3</meta:editing-cycles><meta:editing-duration>PT1H2M30S</meta:editing-duration><dc:date>2019-05-12T09:43:28.907427360</dc:date><meta:generator>LibreOffice/6.3.4.2.0$Linux_X86_64 LibreOffice_project/30$Build-2</meta:generator><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="1" meta:paragraph-count="6" meta:word-count="23" meta:character-count="72" meta:non-whitespace-character-count="55"/><meta:user-defined meta:name="Boolean" meta:value-type="boolean">false</meta:user-defined><meta:user-defined meta:name="Custom Date" meta:value-type="date">2019-05-12</meta:user-defined><meta:user-defined meta:name="Custom Datetime" meta:value-type="date">2019-05-12T00:00:00</meta:user-defined><meta:user-defined meta:name="Custom Duration" meta:value-type="time">P0D</meta:user-defined><meta:user-defined meta:name="Custom Number" meta:value-type="float">10</meta:user-defined><meta:user-defined meta:name="Subtitle" meta:value-type="string">This is a subtitle</meta:user-defined></office:meta> </office:document-meta> I expect the `meta.xml` to be pretty printed, but instead I see one long line.
(In reply to Jambunathan K from comment #6) > I expect the `meta.xml` to be pretty printed, but instead I see one long > line. I tested with the steps. I don't see one long line, though, I see 5 lines (just like in your screenshot). Arch Linux 64-bit Version: 7.0.0.0.alpha0+ Build ID: b267650fd097f16d1b31c87a11a497294ad4ee42 CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: kf5; Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US Calc: threaded Built on 15 April 2020
Dear Jambunathan K, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Created attachment 179691 [details] meta.xml (as seen in Emacs) is NOT prettified when it should be.
The bug persists in $ dpkg -l | grep writer ii libreoffice-writer 1:7.3.1-1 amd64 Version: 7.3.2.2 / LibreOffice Community Build ID: 30(Build:2) CPU threads: 4; OS: Linux 5.16; UI render: default; VCL: x11 Locale: en-IN (en_IN); UI: en-US Debian package version: 1:7.3.1-1 Calc: threaded Steps I followed: 1. Make sure that `PrettyPrinting' is ON. 2. Download https://bugs.documentfoundation.org/attachment.cgi?id=151316 3. Add some newlines to the document. This is so that `meta.xml' gets re-written. 4. Save the file. 5. Unzip the modified file, and open `meta.xml' in a text editor. Text editor in my case is Emacs. 6. This is what I see https://bugs.documentfoundation.org/attachment.cgi?id=179691. 7. I expect to see `meta.xml' pretty printed (Both the reviewers are using Editors that pretty prints the XML even if the raw XML is not pretty printed. I use Emacs. It renders the text of the XML as it is in the file. So, to check my claims please use Emacs or some other editor which doesn't do any "special rendering" of XML.)
Not exclusive to Linux Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community Build ID: ed007423eb4b6d1560d81317b20f291d81bced28 CPU threads: 2; OS: Windows 10.0 Build 19044; UI render: default; VCL: win Locale: fi-FI (fi_FI); UI: en-US Calc: threaded Jumbo