From 52ae98d3cadd975c2079055b00adba58f0982ef4 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Tue, 2 Jan 2024 11:26:04 +0100 Subject: [PATCH] fix: add white-space css to preserve paragraphs in interpretations (#1599) Fixes DHIS2-16365 --- src/components/Interpretations/common/Message/Message.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Interpretations/common/Message/Message.js b/src/components/Interpretations/common/Message/Message.js index 50613ab2b..016e8b9d0 100644 --- a/src/components/Interpretations/common/Message/Message.js +++ b/src/components/Interpretations/common/Message/Message.js @@ -49,6 +49,7 @@ const Message = ({ children, text, created, username }) => { line-height: 19px; color: ${colors.grey900}; word-break: break-word; + white-space: pre-line; } .content :global(p:first-child) {