From cb617531bcd726d505520c045f2ed43ee678c79a Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 13 Oct 2024 10:45:05 -0700 Subject: [PATCH] Fix: preserve text linebreaks in doc edit (#7908) --- .../components/document-detail/document-detail.component.html | 2 +- .../components/document-detail/document-detail.component.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index 124f4811d..e44d7a713 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -379,7 +379,7 @@ } } @case (ContentRenderType.Text) { -
{{previewText}}
+
{{previewText}}
} @case (ContentRenderType.Image) {
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.scss b/src-ui/src/app/components/document-detail/document-detail.component.scss index 860c5722c..c6e3b7448 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.scss +++ b/src-ui/src/app/components/document-detail/document-detail.component.scss @@ -62,3 +62,7 @@ textarea.rtl { height: 100%; object-fit: contain; } + +.whitespace-preserve { + white-space: preserve; +}