summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorCharlotte Koch <charlotte@magentastripe.com>2024-06-09 11:39:44 -0700
committerCharlotte Koch <charlotte@magentastripe.com>2024-06-09 11:39:44 -0700
commite0d888ba5427f33705d8401ae10c95e740ef0bba (patch)
tree16b9546e5b61c2742e58b22e0f93e8494dfc80e4 /script
parent8e63d47c27f9aca4d2a04d1ad3997895320b3376 (diff)
Try to clean up blocks of verse in ODT output
Diffstat (limited to 'script')
-rw-r--r--script/docx_fixup.sed7
1 files changed, 7 insertions, 0 deletions
diff --git a/script/docx_fixup.sed b/script/docx_fixup.sed
index 566a76e..ad22078 100644
--- a/script/docx_fixup.sed
+++ b/script/docx_fixup.sed
@@ -1,6 +1,13 @@
# Render a thematic break as 3 hash symbols.
+#
+# XXX need to replace the surrounding <simpara> with whatever it takes to
+# get a horizontal-rule to show up in LibreOffice
s,<\?asciidoc-hr\?>,\&\#35; \&\#35; \&\#35;,
# Asciidoctor puts a zero-width space after ellipses for some reason -- get
# rid of it.
s,\&\#8203;,,g
+
+# End every preformatted/blockquote with an explicit newlines. It shows up
+# better in LibreOffice.
+s,</literallayout>,\n</literallayout>,