diff --git a/client/css/style.css b/client/css/style.css
index f4c4eb66..c88a072c 100644
--- a/client/css/style.css
+++ b/client/css/style.css
@@ -760,6 +760,14 @@ button,
color: #999;
}
+#chat .msg.motd .text,
+#chat .msg.message .text,
+#chat .msg.action .action-text,
+#chat .msg.notice .text {
+ white-space: pre-wrap;
+ overflow: hidden;
+}
+
#chat.hide-join .join,
#chat.hide-mode .mode,
#chat.hide-motd .motd,
diff --git a/client/views/actions/action.tpl b/client/views/actions/action.tpl
index ddb8efce..1fcced98 100644
--- a/client/views/actions/action.tpl
+++ b/client/views/actions/action.tpl
@@ -1,2 +1,2 @@
{{mode}}{{from}}
-{{{parse text}}}
+{{{parse text}}}
diff --git a/client/views/msg.tpl b/client/views/msg.tpl
index c3155ba4..7563d6b8 100644
--- a/client/views/msg.tpl
+++ b/client/views/msg.tpl
@@ -7,16 +7,17 @@
{{mode}}{{from}}
{{/if}}
-
- {{#equal type "toggle"}}
+ {{#equal type "toggle"}}
+
{{#if toggle}}
{{partial "toggle"}}
{{/if}}
- {{else}}
- {{{parse text}}}
- {{/equal}}
+
+ {{else}}
+ {{{parse text}}}
+ {{/equal}}