From 8781bcb1ee839c6fb4be16a51b82671398753e79 Mon Sep 17 00:00:00 2001
From: Vse Mozhet Byt
Date: Wed, 16 May 2018 21:44:09 +0300
Subject: [PATCH] tools, doc: wrap manpage links in code elements
PR-URL: https://github.com/nodejs/node/pull/20785
Reviewed-By: Anna Henningsen
Reviewed-By: Colin Ihrig
Reviewed-By: Trivikram Kamat
Reviewed-By: James M Snell
Reviewed-By: Luigi Pinca
---
test/doctool/test-doctool-html.js | 10 +++++-----
tools/doc/html.js | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/test/doctool/test-doctool-html.js b/test/doctool/test-doctool-html.js
index 185faa46f71886..0ca46c0adedfc1 100644
--- a/test/doctool/test-doctool-html.js
+++ b/test/doctool/test-doctool-html.js
@@ -52,15 +52,15 @@ const testData = [
'v4.2.0 | The error parameter can now be' +
'an arrow function. |
' +
'Describe Foobar II
in more detail here.' +
- 'fg(1)
' +
- '
Deprecated thingy#' +
'
Added in: v1.0.0' +
'Deprecated since: v2.0.0
Describe ' +
'Deprecated thingy
in more detail here.' +
- 'fg(1p)' +
- '
Something#
' +
+ 'fg(1p)' +
+ '
Something#
' +
' ' +
'Describe Something
in more detail here.
'
},
diff --git a/tools/doc/html.js b/tools/doc/html.js
index dfd0f22c7c8330..24c4614fc291c7 100644
--- a/tools/doc/html.js
+++ b/tools/doc/html.js
@@ -141,7 +141,7 @@ function linkManPages(text) {
MAN_PAGE, (match, beginning, name, number, optionalCharacter) => {
// Name consists of lowercase letters,
// number is a single digit with an optional lowercase letter.
- const displayAs = `${name}(${number}${optionalCharacter})`;
+ const displayAs = `${name}(${number}${optionalCharacter})
`;
if (BSD_ONLY_SYSCALLS.has(name)) {
return `${beginning}