From 839325ea0d1d4cfd32acf6dadd6f48b6325d51ea 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 18:53:36 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/lib/docx-pleading.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/docx-pleading.ts b/src/lib/docx-pleading.ts index f182288..53f8459 100644 --- a/src/lib/docx-pleading.ts +++ b/src/lib/docx-pleading.ts @@ -271,19 +271,20 @@ export function buildPleadingDoc(input: PleadingInput): Document { const plaintiffLines = (input.plaintiffs || "").split("\n").filter((l) => l.trim().length > 0); const defendantLines = (input.defendants || "").split("\n").filter((l) => l.trim().length > 0); - // Left side of caption — all bold + // Left side of caption — all bold; "Plaintiff(s)," / "Defendant(s)." indented + const LABEL_INDENT = 720; // 0.5" const leftCells: Paragraph[] = []; plaintiffLines.forEach((l) => leftCells.push(p(l, { bold: true }))); if (plaintiffLines.length === 0) leftCells.push(p("", { bold: true })); leftCells.push(emptyP()); - leftCells.push(p("Plaintiff(s),", { bold: true })); + leftCells.push(p("Plaintiff(s),", { bold: true, indent: LABEL_INDENT })); leftCells.push(emptyP()); leftCells.push(p("v.", { bold: true })); leftCells.push(emptyP()); defendantLines.forEach((l) => leftCells.push(p(l, { bold: true }))); if (defendantLines.length === 0) leftCells.push(p("", { bold: true })); leftCells.push(emptyP()); - leftCells.push(p("Defendant(s).", { bold: true })); + leftCells.push(p("Defendant(s).", { bold: true, indent: LABEL_INDENT })); const rightCells: Paragraph[] = [ p(`CASE NO.: ${input.caseNumber || ""}`, { bold: true }), @@ -304,7 +305,7 @@ export function buildPleadingDoc(input: PleadingInput): Document { }), new TableCell({ width: { size: 3960, type: WidthType.DXA }, - borders: noBorder, + borders: captionRightBorders, margins: { top: 80, bottom: 80, left: 200, right: 0 }, children: rightCells, }),