Fix drawing of marked text with only attributes

Closes #6414
This commit is contained in:
Marijn Haverbeke 2020-09-15 09:09:24 +02:00
parent b6da8bf16b
commit db719a2e37
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ function buildToken(builder, text, style, startStyle, endStyle, css, attributes)
}
}
builder.trailingSpace = displayText.charCodeAt(text.length - 1) == 32
if (style || startStyle || endStyle || mustWrap || css) {
if (style || startStyle || endStyle || mustWrap || css || attributes) {
let fullStyle = style || ""
if (startStyle) fullStyle += startStyle
if (endStyle) fullStyle += endStyle