diff --git a/css/custom.css b/css/custom.css
index f5fd902bb0..d351daeef2 100644
--- a/css/custom.css
+++ b/css/custom.css
@@ -54,6 +54,10 @@ body .content-root {
margin-top: -50px;
}
+.content pre code {
+ white-space: pre;
+}
+
.menubar {
padding-top: 10px;
}
diff --git a/js/expandcode.js b/js/expandcode.js
index c0999ee7f8..efaaea0492 100644
--- a/js/expandcode.js
+++ b/js/expandcode.js
@@ -1,6 +1,8 @@
-$(document).on('flatdoc:ready', function() {
+function make_code_expandable() {
$('code').dblclick(function(eo) {
$(eo.target).toggleClass('expanded');
});
$('code').attr('title', 'Double-click to expand/collapse');
-});
+}
+
+$(document).on('flatdoc:ready', make_code_expandable);
diff --git a/rippled-apis.html b/rippled-apis.html
index 2ccdb64f93..6603e9c4c8 100644
--- a/rippled-apis.html
+++ b/rippled-apis.html
@@ -77,8 +77,10 @@ mixpanel.init("132d42885e094171f34467fc54da6fab");
+