diff --git a/tools/doc/html.js b/tools/doc/html.js
index daa230cb926e4a..b3e5f8d708cc14 100644
--- a/tools/doc/html.js
+++ b/tools/doc/html.js
@@ -183,7 +183,7 @@ function parseLists(input) {
headingIndex = -1;
heading = null;
}
- tok.text = parseAPIHeader(tok.text);
+ tok.text = parseAPIHeader(tok.text).replace(/\n/g, ' ');
output.push({ type: 'html', text: tok.text });
return;
} else if (state === 'MAYBE_STABILITY_BQ') {