From 43c0722ce28ba3b4e7bc0ee1a71d8d8fc46cdb8c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 02:42:11 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/forms/custom-form-builder.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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),