fix: html adapter

This commit is contained in:
--global 2024-08-16 21:52:28 +08:00
parent 127dc6fc08
commit df99de610c

View File

@ -31,7 +31,7 @@ class HTMLAdapterClazz extends GradientProcessor {
color = [`<span style="color: ${tag.colors?.[index]};">`, "</span>"];
index += 1;
}
textBuilder.appendCharacter(new CharacterBuilder(char.trim() === "" ? "&nbsp;" : "").withColor(color));
textBuilder.appendCharacter(new CharacterBuilder(char.trim() === "" ? "&nbsp;" : char).withColor(color));
});
return textBuilder.build();