From 0edfe53e6690e21aa067e7e92c98d11b8c6e34e0 Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Mon, 11 Jun 2018 14:36:12 -0400 Subject: [PATCH] Preserve whitespace and newlines in messages in the archive. This will help with readability of code segments and match what people see in their email clients. --- django/media/css/main.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/django/media/css/main.css b/django/media/css/main.css index 6221d90..c868120 100644 --- a/django/media/css/main.css +++ b/django/media/css/main.css @@ -768,9 +768,14 @@ h3.messages { .message-content { display: inline-block; font-family: monospace, monospace; - font-size: 0.8em; - line-height: 1.2em; + font-size: 0.7em; + line-height: 1em; margin: 0 auto; + white-space: pre-wrap; +} + +.message-content p { + margin-bottom: 0; } .message-responses { -- 2.39.5