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, }), ); }