diff options
| author | Michael Stahl <[email protected]> | 2023-04-28 12:07:42 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-04-28 12:17:22 -0700 |
| commit | 16be353077d135d452a4ac63ff4210d13610ffbd (patch) | |
| tree | 1e3b17dde57fadd42cd7570950abe6a4ceaf7fbd /test/command | |
| parent | 60e72b2542b997b16794bbbe40b9ec69e3eb9380 (diff) | |
Writers.ODT: don't add settings.xml
The way "ooo:configuration-settings" work is that if LibreOffice Writer
loads a file in which it exists, it assumes that an old version of
itself has produced it and it defaults any config-item that it knows but
that doesn't exist in the file to the "backward-compatible" value, which
usually means to enable some layout or text formatting bugs so that the
document looks the same as in the old LO version that created it.
If there is no "ooo:configuration-settings" then it will use the default
values for a new document, which should give the best formatting
results.
Pandoc's documents are obviously not created by LO, so it doesn't make
sense to produce ooo:configuration-settings.
Regarding the "ooo:view-settings", IIRC these mainly set to the
document view to the position where the document was last edited (by
default only if the user in meta.xml matches the user data in LO's
configuration), which is also irrelevant for Pandoc.
So just leave out the settings.xml; only content.xml/styles.xml are
required (see ODF 1.3, part 3, 2.2.1 OpenDocument Document, A.2).
(The settings.xml that is produced for formulas by the documentSettings
function hopefully isn't problematic because LO Math works a bit
differently and stores important formatting attributes in settings.xml
because MathML doesn't allow it in content.xml.)
Diffstat (limited to 'test/command')
0 files changed, 0 insertions, 0 deletions
