From cd1e7d8fa8a37497f35833ccbec8acd70264a6c9 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 24 Oct 2026 09:28:08 +0200 Subject: [PATCH] refactor(pdf): call the markdown row directly --- client/src/components/PDF/TripPDF.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/components/PDF/TripPDF.tsx b/client/src/components/PDF/TripPDF.tsx index 9f70f374e..4ce2abec4 100644 --- a/client/src/components/PDF/TripPDF.tsx +++ b/client/src/components/PDF/TripPDF.tsx @@ -233,7 +233,6 @@ export async function downloadTripPDF({ trip, days, places, assignments: allStor const loc = _locale || undefined const tr = _t || (k => k) const markdown = createPdfMarkdown() - const mdBlock = markdown.row // The store read is the fallback, not the source: a caller that forgets the // prop still prints the reader's own format instead of silently reverting. const is12h = (_timeFormat || useSettingsStore.getState().settings.time_format || '24h') === '12h' @@ -590,10 +589,10 @@ export async function downloadTripPDF({ trip, days, places, assignments: allStor ${place.address ? `
${svgPin}${escHtml(place.address)}
` : ''} ${(place.lat != null && place.lng != null) ? `
${Number(place.lat).toFixed(5)}, ${Number(place.lng).toFixed(5)}
` : ''} - ${place.description ? mdBlock(place.description) : ''} + ${place.description ? markdown.row(place.description) : ''} ${chips ? `
${chips}
` : ''} - ${place.notes ? mdBlock(place.notes) : ''} - ${item.data.notes ? mdBlock(item.data.notes) : ''} + ${place.notes ? markdown.row(place.notes) : ''} + ${item.data.notes ? markdown.row(item.data.notes) : ''} ` }).join('')