From f71c1faad96840ebd8f29b722edb056a0b7de2ca Mon Sep 17 00:00:00 2001 From: katie-cawthorne Date: Wed, 18 Nov 2020 11:56:54 +0000 Subject: [PATCH] :lipstick: PIC-917: Added whitespace formatting: --- mappings/community/D991494-breach-98765.json | 2 +- public/stylesheets/app/_white-space-format.scss | 3 +++ public/stylesheets/app/all.scss | 1 + server/views/case-summary-record-order-breach.njk | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 public/stylesheets/app/_white-space-format.scss diff --git a/mappings/community/D991494-breach-98765.json b/mappings/community/D991494-breach-98765.json index e8d381406..adc0ef639 100644 --- a/mappings/community/D991494-breach-98765.json +++ b/mappings/community/D991494-breach-98765.json @@ -18,7 +18,7 @@ "team": "Enforcement hub - Sheffield and Rotherham", "officer": "Unallocated", "status": "Completed - Amended & Continued", - "notes": "Paragraph 1: Some information.\nParagraph 2: And some more.", + "notes": "Paragraph 1: Some information.\nParagraph 2: And some more.\nParagraph 3: And another\n\nParagraph 4: And another", "documents": [ { "documentId": "98765", diff --git a/public/stylesheets/app/_white-space-format.scss b/public/stylesheets/app/_white-space-format.scss new file mode 100644 index 000000000..4e3a25dae --- /dev/null +++ b/public/stylesheets/app/_white-space-format.scss @@ -0,0 +1,3 @@ +.pac-white-space-format { + white-space: pre-line; +} diff --git a/public/stylesheets/app/all.scss b/public/stylesheets/app/all.scss index ac0ba586b..7ec5c4c85 100644 --- a/public/stylesheets/app/all.scss +++ b/public/stylesheets/app/all.scss @@ -9,3 +9,4 @@ @import "section-break"; @import "header"; @import "dashboard-count"; +@import "white-space-format"; diff --git a/server/views/case-summary-record-order-breach.njk b/server/views/case-summary-record-order-breach.njk index 86feaaa26..1a1183e5a 100644 --- a/server/views/case-summary-record-order-breach.njk +++ b/server/views/case-summary-record-order-breach.njk @@ -77,7 +77,7 @@

Notes

{% if breach.notes | length %} -

{{ breach.notes }}

+

{{ breach.notes }}

{% else %}

No notes have been added.

{% endif %}