Skip to content

Commit 28b707b

Browse files
thefourtheyeMylesBorins
authored andcommitted
doc: replace newlines in deprecation with space
As it is, each line in the deprecation heading which are wrapped at 80 characters in the *.md files, are shown in different lines. For example > Stability: 0 - Deprecated: Use > `Buffer.from(arrayBuffer[, byteOffset [, length]])` > instead. is shown in three different lines. This patch replaces the newlines with space characters, so that the output will be in single line. PR-URL: #11074 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 1595328 commit 28b707b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/doc/html.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function parseLists(input) {
183183
headingIndex = -1;
184184
heading = null;
185185
}
186-
tok.text = parseAPIHeader(tok.text);
186+
tok.text = parseAPIHeader(tok.text).replace(/\n/g, ' ');
187187
output.push({ type: 'html', text: tok.text });
188188
return;
189189
} else if (state === 'MAYBE_STABILITY_BQ') {

0 commit comments

Comments
 (0)