]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: preserve text linebreaks in doc edit (#7908)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sun, 13 Oct 2024 17:45:05 +0000 (10:45 -0700)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2024 17:45:05 +0000 (10:45 -0700)
src-ui/src/app/components/document-detail/document-detail.component.html
src-ui/src/app/components/document-detail/document-detail.component.scss

index 124f4811d5fac76b334858b977ed08a40c1d72a2..e44d7a7131ced92bad5a8ed6725df101953b728f 100644 (file)
         }
       }
       @case (ContentRenderType.Text) {
-        <div class="preview-sticky bg-light p-3 overflow-auto" width="100%">{{previewText}}</div>
+        <div class="preview-sticky bg-light p-3 overflow-auto whitespace-preserve" width="100%">{{previewText}}</div>
       }
       @case (ContentRenderType.Image) {
         <div class="preview-sticky">
index 860c5722cef6bafe53e1054e13928baf5a5f3015..c6e3b7448cf2f6e52d2874abf5312a1751018b6c 100644 (file)
@@ -62,3 +62,7 @@ textarea.rtl {
   height: 100%;
   object-fit: contain;
 }
+
+.whitespace-preserve {
+  white-space: preserve;
+}