diff --git a/tools/doc/json.js b/tools/doc/json.js index ddf7cedcf4c537..2966e4c3d91916 100644 --- a/tools/doc/json.js +++ b/tools/doc/json.js @@ -256,8 +256,7 @@ function processList(section) { `${JSON.stringify(tok)}\n` + JSON.stringify(list)); } - current.textRaw = current.textRaw || ''; - current.textRaw += `${tok.text} `; + current.textRaw = `${current.textRaw || ''}${tok.text} `; } });