mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-05 16:37:19 -04:00
Fix background colors not being applied correctly
This commit is contained in:
+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