Skip to content

Commit 265a59b

Browse files
thefourtheyeitaloacasas
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 0d52ace commit 265a59b

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
@@ -208,7 +208,7 @@ function parseLists(input) {
208208
headingIndex = -1;
209209
heading = null;
210210
}
211-
tok.text = parseAPIHeader(tok.text);
211+
tok.text = parseAPIHeader(tok.text).replace(/\n/g, ' ');
212212
output.push({ type: 'html', text: tok.text });
213213
return;
214214
} else if (state === 'MAYBE_STABILITY_BQ') {

0 commit comments

Comments
 (0)