diff --git a/resources/templates/html.css b/resources/templates/html.css
index 6122ca0c17..4d9a5bd55f 100644
--- a/resources/templates/html.css
+++ b/resources/templates/html.css
@@ -124,7 +124,7 @@ h6 {
pre {
display: block;
font-family: monospace;
- white-space: pre;
+ white-space: pre-wrap;
margin: 1em 0;
}