summaryrefslogtreecommitdiff
path: root/lib/JWebmail/View
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-03-16 18:01:06 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2023-03-16 18:01:06 +0100
commit41a0a69ba25b46797b8fbc93a2035ed257b72999 (patch)
tree6aefa4c49a6f29dd55cb1bed82c60bbc5b96804d /lib/JWebmail/View
parent0203fba6502916e4a6f63433fb7a26e8eff42c85 (diff)
changed pagination appearance
Diffstat (limited to 'lib/JWebmail/View')
-rw-r--r--lib/JWebmail/View/RenderMail.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/JWebmail/View/RenderMail.pm b/lib/JWebmail/View/RenderMail.pm
index 07f356c..90534dc 100644
--- a/lib/JWebmail/View/RenderMail.pm
+++ b/lib/JWebmail/View/RenderMail.pm
@@ -12,10 +12,9 @@ has 'c';
sub render_text_plain {
my ($_self, $_subtype, $content, $_path) = @_;
- $content = xml_escape($content);
- $content =~ s/\n/<br>/g;
+ $content = xml_escape $content;
- return qq'<div class="jwm-mail-body jwm-mail-body-text-plain">\n $content </div>\n';
+ return qq'<div class="jwm-mail-body-text-plain"><pre>$content</pre></div>\n';
}
sub render_text_html {