From 6fbb50fc88c841e181a11f5aabf958cd39b04290 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 31 Jan 2025 11:44:48 -0800 Subject: Docx writer: repeat reference doc's sectPr for each new section. Previously we were only carrying over the reference doc's sectPr at the end of the document, so it wouldn't affect the intermediate sections that are now added if `--top-level-division` is `chapter` or `part`. This could lead to bad results (e.g. page numbering starting only on the last chapter). Closes #10577. --- data/templates/default.openxml | 9 --------- 1 file changed, 9 deletions(-) (limited to 'data') diff --git a/data/templates/default.openxml b/data/templates/default.openxml index b86efffa2..1344857fe 100644 --- a/data/templates/default.openxml +++ b/data/templates/default.openxml @@ -60,15 +60,6 @@ $endif$ $for(include-after)$ $include-after$ $endfor$ -$-- sectpr will be set to the last sectpr in a reference.docx, if present -$if(sectpr)$ $sectpr$ -$else$ - - - - - -$endif$ -- cgit v1.2.3