From c7b458887737f33a0b21c1ab35854072eec795e8 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 20 Oct 2021 17:39:30 -0400 Subject: Only output style attribute if necessary --- bin/shotty.l | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/shotty.l b/bin/shotty.l index e9edb515..8018d785 100644 --- a/bin/shotty.l +++ b/bin/shotty.l @@ -493,7 +493,8 @@ static void span(const struct Cell *prev, const struct Cell *cell) { if (fg < 8) fg += 8; attr &= ~Bold; } - printf(Q("); + printf("%s>", (attr || colors ? "\"" : "")); } switch (cell->ch) { break; case L'&': printf("&"); -- cgit 1.4.1