aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-01-31 11:44:48 -0800
committerJohn MacFarlane <[email protected]>2025-01-31 11:44:48 -0800
commit6fbb50fc88c841e181a11f5aabf958cd39b04290 (patch)
tree598489ba8389c99de46697126d4d1a4d21cdd123 /data
parenta14fe6f446fd47be9542d5b5ba4c14cb1524fed3 (diff)
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.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.openxml9
1 files changed, 0 insertions, 9 deletions
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$
- <w:sectPr>
- <w:footnotePr>
- <w:numRestart w:val="eachSect" />
- </w:footnotePr>
- </w:sectPr>
-$endif$
</w:body>
</w:document>