aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Stahl <[email protected]>2023-04-28 12:07:42 +0200
committerJohn MacFarlane <[email protected]>2023-04-28 12:17:22 -0700
commit16be353077d135d452a4ac63ff4210d13610ffbd (patch)
tree1e3b17dde57fadd42cd7570950abe6a4ceaf7fbd /src
parent60e72b2542b997b16794bbbe40b9ec69e3eb9380 (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 'src')
-rw-r--r--src/Text/Pandoc/Data.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Data.hs b/src/Text/Pandoc/Data.hs
index 0d4828ca2..e6747a500 100644
--- a/src/Text/Pandoc/Data.hs
+++ b/src/Text/Pandoc/Data.hs
@@ -123,7 +123,6 @@ getDefaultReferenceODT = do
"styles.xml",
"content.xml",
"meta.xml",
- "settings.xml",
"META-INF/manifest.xml"]
let pathToEntry path = do epochtime <- floor `fmap` getPOSIXTime
contents <- (BL.fromChunks . (:[])) `fmap`