From 7d56650e0137daf504fdd79187811f091d4eee37 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 28 Dec 2021 16:06:25 -0800 Subject: OpenDocument writer: fix vertical align bug with display math. Previously some displayed formulas would be floated above a preceding text line. This is fixed by setting vertical-rel to 'text' rather than 'paragraph-content'. Closes #7777. --- src/Text/Pandoc/Writers/OpenDocument.hs | 2 +- test/command/6792.md | 2 +- test/writer.opendocument | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Text/Pandoc/Writers/OpenDocument.hs b/src/Text/Pandoc/Writers/OpenDocument.hs index a42c5df64..8af64969b 100644 --- a/src/Text/Pandoc/Writers/OpenDocument.hs +++ b/src/Text/Pandoc/Writers/OpenDocument.hs @@ -192,7 +192,7 @@ formulaStyle mt = inTags False "style:style" ,("style:vertical-rel", "text")] else [("style:vertical-pos", "middle") - ,("style:vertical-rel", "paragraph-content") + ,("style:vertical-rel", "text") ,("style:horizontal-pos", "center") ,("style:horizontal-rel", "paragraph-content") ,("style:wrap", "none")] diff --git a/test/command/6792.md b/test/command/6792.md index 3d31942fe..253009d46 100644 --- a/test/command/6792.md +++ b/test/command/6792.md @@ -22,7 +22,7 @@ - + diff --git a/test/writer.opendocument b/test/writer.opendocument index 9e6ef336e..3095cef41 100644 --- a/test/writer.opendocument +++ b/test/writer.opendocument @@ -1017,7 +1017,7 @@ - + -- cgit v1.2.3