Merge pull request #1242 from starquake/newlines-fix

Correctly show whitespace and newlines in messages
This commit is contained in:
Jérémie Astori 2017-07-19 02:05:31 -04:00 committed by GitHub
commit f88d1e3bef
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 { #image-viewer .open-btn {
margin: 0 auto 10px; 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}} {{> ../user_name nick=from}}
<b>{{ctcpType}}</b> {{{parse ctcpMessage}}} <b>{{ctcpType}}</b> <span class="ctcp-message">{{{parse ctcpMessage}}}</span>