From 693d2d48b0c5dc584d01c6878bfc293823613f2a Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 29 Dec 2020 17:44:48 -0500 Subject: Clean up hilex code somewhat --- bin/hilex/hilex.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bin/hilex/hilex.c') diff --git a/bin/hilex/hilex.c b/bin/hilex/hilex.c index 43130f4d..8b824bcd 100644 --- a/bin/hilex/hilex.c +++ b/bin/hilex/hilex.c @@ -82,9 +82,13 @@ static const char *ClassName[] = { static void debugFormat(const char *opts[], enum Class class, const char *text) { - printf("%s(\33[3m", ClassName[class]); - FormatANSI.format(opts, class, text); - printf("\33[m)"); + if (class != Normal) { + printf("%s(", ClassName[class]); + FormatANSI.format(opts, class, text); + printf(")"); + } else { + printf("%s", text); + } } const struct Formatter FormatDebug = { .format = debugFormat }; -- cgit 1.4.1