Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 16:28:35 +00:00
co-authored by renee-png
parent 6494289d82
commit afcbf3a52f
+4 -1
View File
@@ -758,7 +758,10 @@ export function CustomFormBuilder() {
const indentPt = indentPx * 0.75; // px → pt
const segMaxW = maxW - indentPt;
const startX = margin + indentPt;
const visualLines = runsToLines(seg.runs);
const runsForLayout: InlineRun[] = seg.marker
? [{ text: `${seg.marker} ` }, ...seg.runs]
: seg.runs;
const visualLines = runsToLines(runsForLayout);
if (visualLines.length === 0 || (visualLines.length === 1 && visualLines[0].length === 0)) {
y += lineH;
} else {