Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 02:42:11 +00:00
co-authored by renee-png
parent 22bc246bee
commit 43c0722ce2
@@ -742,11 +742,15 @@ export function CustomFormBuilder() {
const segments = getRenderedSegments();
const children: Array<DocxParagraph | DocxTable> = [];
// 240 twentieths-of-a-point = single spacing; multiply by lineHeight.
const docxLineSpacing = { line: Math.round(lineHeight * 240), lineRule: "auto" as const };
if (!hideTitle && title.trim()) {
children.push(
new DocxParagraph({
heading: HeadingLevel.HEADING_1,
alignment: AlignmentType.CENTER,
spacing: docxLineSpacing,
children: [
new TextRun({
text: applyVariables(title, ctx),