From 5e29b86b600a0330dea18880db4fc2c2d1a03357 Mon Sep 17 00:00:00 2001 From: "C. 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(-) (limited to 'bin') diff --git a/bin/shotty.l b/bin/shotty.l index 6eacdc4f..c33b1f8b 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