From 734d51e8872bb6f3bd5bfbcd69e9a734fb7e60ad Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Mon, 1 Jun 2026 23:32:52 +0200 Subject: [PATCH] fix: fix export of page margins --- src/lib/export/odt.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/export/odt.ts b/src/lib/export/odt.ts index f6325fd..984849c 100644 --- a/src/lib/export/odt.ts +++ b/src/lib/export/odt.ts @@ -156,6 +156,11 @@ function rewriteStylesXml(odtBytes: Uint8Array): Uint8Array { // font-face declaration and the Standard style's font-name attributes. styles = styles.split(ODFKIT_DEFAULT_FONT).join(EXPORT_FONT); + styles = styles.replace( + '… block so the // font-size/margin replacements never bleed across heading levels. for (const { name, fontSize, marginTop, marginBottom } of HEADING_STYLE_OVERRIDES) {