From f8480200fe9e5868f2d67ed98fd7557077b0dc9f Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Wed, 14 Jul 2021 14:50:34 +0200
Subject: [PATCH] [editor] Preserve line breaks on text elements

---
 projects/common/element-components/text.component.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/projects/common/element-components/text.component.ts b/projects/common/element-components/text.component.ts
index 8b0d35d00..754ab8a4c 100644
--- a/projects/common/element-components/text.component.ts
+++ b/projects/common/element-components/text.component.ts
@@ -12,7 +12,8 @@ import { FormElementComponent } from '../canvas-element-component.directive';
            [style.font-size.px]="elementModel.fontSize"
            [style.font-weight]="elementModel.bold ? 'bold' : ''"
            [style.font-style]="elementModel.italic ? 'italic' : ''"
-           [style.text-decoration]="elementModel.underline ? 'underline' : ''">
+           [style.text-decoration]="elementModel.underline ? 'underline' : ''"
+           [style.white-space]="'pre-wrap'">
           {{$any(elementModel).text}}
       </div>
   `
-- 
GitLab