diff --git a/test/doctool/test-doctool-html.mjs b/test/doctool/test-doctool-html.mjs index 9323548221b599..6fbca131851f3b 100644 --- a/test/doctool/test-doctool-html.mjs +++ b/test/doctool/test-doctool-html.mjs @@ -79,10 +79,11 @@ const testData = [ '
' + '
History' + '' + + '' + '' + '' + - '
VersionChanges
v4.2.0

The error parameter can now be' + + 'an arrow function.

v5.3.0, v4.2.0

Added in: v5.3.0, v4.2.0

v4.2.0

The error parameter can now be' + - 'an arrow function.

' + + ' ' + '

Describe Foobar II in more detail here.' + 'fg(1)' + '

' + diff --git a/tools/doc/html.mjs b/tools/doc/html.mjs index 373f5487a31d4b..8e85b8abec32a1 100644 --- a/tools/doc/html.mjs +++ b/tools/doc/html.mjs @@ -325,27 +325,27 @@ function parseYAML(text) { const removed = { description: '' }; if (meta.added) { - added.version = meta.added.join(', '); - added.description = `Added in: ${added.version}`; + added.version = meta.added; + added.description = `Added in: ${added.version.join(', ')}`; } if (meta.deprecated) { - deprecated.version = meta.deprecated.join(', '); + deprecated.version = meta.deprecated; deprecated.description = - `Deprecated since: ${deprecated.version}`; + `Deprecated since: ${deprecated.version.join(', ')}`; } if (meta.removed) { - removed.version = meta.removed.join(', '); - removed.description = `Removed in: ${removed.version}`; + removed.version = meta.removed; + removed.description = `Removed in: ${removed.version.join(', ')}`; } if (meta.changes.length > 0) { - if (added.description) meta.changes.push(added); if (deprecated.description) meta.changes.push(deprecated); if (removed.description) meta.changes.push(removed); meta.changes.sort((a, b) => versionSort(a.version, b.version)); + if (added.description) meta.changes.push(added); result += '
History\n' + '\n\n';
VersionChanges