mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-27 03:29:58 -04:00
Fix background colors not being applied correctly
This commit is contained in:
1 parent
87aaa94b41
commit
fca5fd91d6
1 file changed
+1
-1
+1
-1
@@ -26,7 +26,7 @@ func (e *BaseElement) renderText(w io.Writer, rules *ElementStyle, s string) {
|
|||||||
if rules.BackgroundColor != "" {
|
if rules.BackgroundColor != "" {
|
||||||
i, err := strconv.Atoi(rules.BackgroundColor)
|
i, err := strconv.Atoi(rules.BackgroundColor)
|
||||||
if err == nil && i >= 0 && i <= 255 {
|
if err == nil && i >= 0 && i <= 255 {
|
||||||
out = out.Index(uint8(i))
|
out = out.BgIndex(uint8(i))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user