From c6cee5409a68be574bb67d5d6a854befc9f075de 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 16:28:50 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/forms/custom-form-builder.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/forms/custom-form-builder.tsx b/src/components/forms/custom-form-builder.tsx index b593c6c..eeedc0b 100644 --- a/src/components/forms/custom-form-builder.tsx +++ b/src/components/forms/custom-form-builder.tsx @@ -902,12 +902,19 @@ export function CustomFormBuilder() { ? AlignmentType.JUSTIFIED : AlignmentType.LEFT; const indentTwips = Math.round((seg.indent || 0) * 15); // ~px → twips (1px≈15twip) + const baseRuns = buildDocxRuns(seg.runs, { italic: seg.caption }); + const runsWithMarker = seg.marker + ? [ + new TextRun({ text: `${seg.marker}\t`, font: fontFamily, size: fontSize * 2 }), + ...baseRuns, + ] + : baseRuns; children.push( new DocxParagraph({ alignment: align, spacing: docxLineSpacing, - indent: indentTwips ? { left: indentTwips } : undefined, - children: buildDocxRuns(seg.runs, { italic: seg.caption }), + indent: indentTwips ? { left: indentTwips, hanging: seg.marker ? 360 : undefined } : seg.marker ? { left: 360, hanging: 360 } : undefined, + children: runsWithMarker, }), ); }