From f0e6e397a443f6f693ec8fce1a5a326a8684ac0d Mon Sep 17 00:00:00 2001 From: Jan Visser Date: Tue, 18 Jul 2017 16:24:40 +0200 Subject: [PATCH] Correctly handle multiple successive whitespace characters --- client/css/style.css | 16 ++++++++++++++++ client/views/actions/ctcp.tpl | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/client/css/style.css b/client/css/style.css index ada6a2a4..b8f3c155 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -2085,3 +2085,19 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */ #image-viewer .open-btn { margin: 0 auto 10px; } + +/* Correctly handle multiple successive whitespace characters. + For example: user has quit ( ===> L O L <=== ) */ + +#windows .header .topic, +#chat .message .text, +#chat .motd .text, +#chat .notice .text, +#chat .ctcp-message, +#chat .part-reason, +#chat .quit-reason, +#chat .new-topic, +#chat .action-text, +#chat table.channel-list .topic { + white-space: pre-wrap; +} diff --git a/client/views/actions/ctcp.tpl b/client/views/actions/ctcp.tpl index 5b716495..a64a296d 100644 --- a/client/views/actions/ctcp.tpl +++ b/client/views/actions/ctcp.tpl @@ -1,2 +1,2 @@ {{> ../user_name nick=from}} -{{ctcpType}} {{{parse ctcpMessage}}} +{{ctcpType}} {{{parse ctcpMessage}}}