Update colour.zig
This commit is contained in:
parent
fa00747fca
commit
7ecbc5c3bd
|
@ -34,7 +34,7 @@ pub fn comptimeColour(comptime clr: []const u8, comptime str: []const u8) []cons
|
||||||
|
|
||||||
if (clr[0] == '#' or clr[0] == '\u{001b}') {
|
if (clr[0] == '#' or clr[0] == '\u{001b}') {
|
||||||
if (terminal_version) {
|
if (terminal_version) {
|
||||||
return crl ++ str ++ TerminalResetColour;
|
return clr ++ str ++ TerminalResetColour;
|
||||||
} else {
|
} else {
|
||||||
return "<span color=\"" ++ clr ++ "\">" ++ str ++ "</span>";
|
return "<span color=\"" ++ clr ++ "\">" ++ str ++ "</span>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue