diff --git a/tools/doc/html.mjs b/tools/doc/html.mjs
index 373f5487a31d4b..f436055ba77012 100644
--- a/tools/doc/html.mjs
+++ b/tools/doc/html.mjs
@@ -325,18 +325,18 @@ function parseYAML(text) {
const removed = { description: '' };
if (meta.added) {
- added.version = meta.added.join(', ');
+ added.version = meta.added;
added.description = `Added in: ${added.version}`;
}
if (meta.deprecated) {
- deprecated.version = meta.deprecated.join(', ');
+ deprecated.version = meta.deprecated;
deprecated.description =
`Deprecated since: ${deprecated.version}`;
}
if (meta.removed) {
- removed.version = meta.removed.join(', ');
+ removed.version = meta.removed;
removed.description = `Removed in: ${removed.version}`;
}