mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-08-29 21:26:44 -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 != "" {
|
||||
i, err := strconv.Atoi(rules.BackgroundColor)
|
||||
if err == nil && i >= 0 && i <= 255 {
|
||||
out = out.Index(uint8(i))
|
||||
out = out.BgIndex(uint8(i))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user