From d1d7f207e81bc947792464094ab0cab01a248746 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:43:13 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/lib/docx-pleading.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/docx-pleading.ts b/src/lib/docx-pleading.ts index af58944..30f4c6b 100644 --- a/src/lib/docx-pleading.ts +++ b/src/lib/docx-pleading.ts @@ -252,19 +252,19 @@ 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 + // Left side of caption — all bold const leftCells: Paragraph[] = []; - plaintiffLines.forEach((l) => leftCells.push(p(l))); - if (plaintiffLines.length === 0) leftCells.push(p("")); + 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),")); + leftCells.push(p("Plaintiff(s),", { bold: true })); leftCells.push(emptyP()); - leftCells.push(p("v.")); + leftCells.push(p("v.", { bold: true })); leftCells.push(emptyP()); - defendantLines.forEach((l) => leftCells.push(p(l))); - if (defendantLines.length === 0) leftCells.push(p("")); + 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).")); + leftCells.push(p("Defendant(s).", { bold: true })); const rightCells: Paragraph[] = [ p(`CASE NO.: ${input.caseNumber || ""}`, { bold: true }), @@ -279,7 +279,7 @@ export function buildPleadingDoc(input: PleadingInput): Document { children: [ new TableCell({ width: { size: 5400, type: WidthType.DXA }, - borders: verticalLine, + borders: captionLeftBorders, margins: { top: 80, bottom: 80, left: 0, right: 200 }, children: leftCells, }),