From 65ee8a139c8d3bdc9b18e874f790b1d21c0049b0 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Mon, 22 May 2023 11:23:19 +0200 Subject: [PATCH] Use white-space: pre-line for invoice notes and payment instructions I want the `white-space: pre` to preserve the newline characters that users may have used, but this prevents line wrapping and long lines are not confined within the page margins. `pre-line` preserves the newlines, but collapses spaces and tabs, and wraps long text, which is more what i want. --- web/static/invoice.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/static/invoice.css b/web/static/invoice.css index a5fb716..3ac113a 100644 --- a/web/static/invoice.css +++ b/web/static/invoice.css @@ -56,7 +56,7 @@ } .invoice .notes, .invoice .payment-instructions { - white-space: pre; + white-space: pre-line; text-align: right; }