Correctly handle multiple successive whitespace characters

This commit is contained in:
Jan Visser 2017-07-18 16:24:40 +02:00
parent 488dd7aeb4
commit f0e6e397a4
2 changed files with 17 additions and 1 deletions

View file

@ -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;
}

View file

@ -1,2 +1,2 @@
{{> ../user_name nick=from}}
<b>{{ctcpType}}</b> {{{parse ctcpMessage}}}
<b>{{ctcpType}}</b> <span class="ctcp-message">{{{parse ctcpMessage}}}</span>