1
0
Fork 0

Update colour.zig

This commit is contained in:
purringChaos 2020-07-17 21:07:42 +01:00 committed by GitHub
parent fa00747fca
commit 7ecbc5c3bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 (terminal_version) {
return crl ++ str ++ TerminalResetColour;
return clr ++ str ++ TerminalResetColour;
} else {
return "<span color=\"" ++ clr ++ "\">" ++ str ++ "</span>";
}