Permalink
Browse files

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 <anna@addaleax.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information...
thefourtheye authored and italoacasas committed Jan 30, 2017
1 parent 0d52ace commit 265a59b60f83965284288dc4ce750d76fc9238eb
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/doc/html.js
View
@@ -208,7 +208,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') {

0 comments on commit 265a59b

Please sign in to comment.