keep quotes and brackets outside the html() span, refs #1154

This commit is contained in:
dualfroz committed 2026-10-14 19:36:07 +02:00
1 parent 80f71d084f
commit f10373c4f7
2 files changed
+18 -2

No files matched your search

+2 -2
View File
@@ -60,11 +60,11 @@ const html = function (obj) {
this.docs.forEach(terms => {
for (let i = 0; i < terms.length; i += 1) {
const t = terms[i]
// do a span tag
out += t.pre || ''
// do a span tag, inside the pre-punctuation
if (Object.hasOwn(starts, t.id)) {
out += starts[t.id].join('')
}
out += t.pre || ''
out += t.text || ''
if (Object.hasOwn(ends, t.id)) {
out += ends[t.id].join('')