Restore no wrapping of XML in Docx, ODT.
It's possible that wrapping causes problems; safer to turn it off.
This commit is contained in:
parent
28a2f4c2a4
commit
47cc5ad6e0
2 changed files with 2 additions and 2 deletions
|
@ -245,7 +245,7 @@ writeDocx opts doc@(Pandoc meta _) = do
|
|||
let tocTitle = fromMaybe (stTocTitle defaultWriterState) $
|
||||
metaValueToInlines <$> lookupMeta "toc-title" meta
|
||||
|
||||
((contents, footnotes), st) <- runStateT (writeOpenXML opts{writerWrapText = WrapAuto} doc')
|
||||
((contents, footnotes), st) <- runStateT (writeOpenXML opts{writerWrapText = WrapNone} doc')
|
||||
defaultWriterState{ stChangesAuthor = fromMaybe "unknown" username
|
||||
, stChangesDate = formatTime defaultTimeLocale "%FT%XZ" utctime
|
||||
, stPrintWidth = (maybe 420 (\x -> quot x 20) pgContentWidth)
|
||||
|
|
|
@ -67,7 +67,7 @@ writeODT opts doc@(Pandoc meta _) = do
|
|||
-- handle formulas and pictures
|
||||
picEntriesRef <- newIORef ([] :: [Entry])
|
||||
doc' <- walkM (transformPicMath opts picEntriesRef) $ walk fixDisplayMath doc
|
||||
let newContents = writeOpenDocument opts{writerWrapText = WrapAuto} doc'
|
||||
let newContents = writeOpenDocument opts{writerWrapText = WrapNone} doc'
|
||||
epochtime <- floor `fmap` getPOSIXTime
|
||||
let contentEntry = toEntry "content.xml" epochtime
|
||||
$ fromStringLazy newContents
|
||||
|
|
Loading…
Add table
Reference in a new issue