Export an 'escapeXml' proc from xmldom
The interface is similar to escapeJson
This commit is contained in:
parent
5623007126
commit
6758fbd06e
2 changed files with 15 additions and 8 deletions
|
|
@ -621,7 +621,7 @@ proc ansiForegroundColorCode*(color: Color): string =
|
|||
colorsFGCache[color] = result
|
||||
|
||||
template ansiForegroundColorCode*(color: static[Color]): string =
|
||||
let rgb = extractRGB(color)
|
||||
const rgb = extractRGB(color)
|
||||
(static(fmt"{fgPrefix}{rgb.r};{rgb.g};{rgb.b}m"))
|
||||
|
||||
proc ansiBackgroundColorCode*(color: Color): string =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue