diff --git a/src/components/forms/custom-form-builder.tsx b/src/components/forms/custom-form-builder.tsx index 3f537e9..8791872 100644 --- a/src/components/forms/custom-form-builder.tsx +++ b/src/components/forms/custom-form-builder.tsx @@ -742,11 +742,15 @@ export function CustomFormBuilder() { const segments = getRenderedSegments(); const children: Array = []; + // 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),