diff options
author | Sakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com> | 2017-01-31 00:14:59 +0530 |
---|---|---|
committer | Sakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com> | 2017-02-01 23:40:42 +0530 |
commit | 63f110addb51807613f24d066c3acc51c10c7de9 (patch) | |
tree | 15d26594d599f75827afd418289eb67270b2f4eb /tools | |
parent | 1b30df10037d24224a555829754f4423d35bbf88 (diff) | |
download | android-node-v8-63f110addb51807613f24d066c3acc51c10c7de9.tar.gz android-node-v8-63f110addb51807613f24d066c3acc51c10c7de9.tar.bz2 android-node-v8-63f110addb51807613f24d066c3acc51c10c7de9.zip |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/html.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/html.js b/tools/doc/html.js index 4b1c0a0e69..3dd6f83da5 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -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') { |