diff --git a/clover/www/js/topics.js b/clover/www/js/topics.js
index ea792ba59..ef0b03c03 100644
--- a/clover/www/js/topics.js
+++ b/clover/www/js/topics.js
@@ -64,8 +64,11 @@ function viewTopic(topic) {
}
}
- let txt = `
${counter} received
${YAML.stringify(msg)}`; // JSON.stringify(msg, null, 4);
- topicMessage.innerHTML = txt;
+ let width = Number(params.width) || 100;
+ let indent = Number(params.indent) || 2;
+ let txt = YAML.stringify(msg, { lineWidth: width, indent: indent });
+ let html = `${counter} received
${txt}`; // JSON.stringify(msg, null, 4);
+ topicMessage.innerHTML = html;
});
}