From ebb96bbbc075c304c6f8cbf8c4d301a35fd64114 Mon Sep 17 00:00:00 2001 From: tjg Date: Tue, 2 Oct 2001 09:52:59 +0000 Subject: fix obscure quoting bug --- footobar.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/footobar.c b/footobar.c index 14e052e..e359de8 100644 --- a/footobar.c +++ b/footobar.c @@ -288,9 +288,11 @@ static bool Aconv(Format *f, int ignore) { /* %L -- print a list */ static bool Lconv(Format *f, int ignore) { - List *l, *n; + bool plain; char *sep; + List *l, *n; + plain = f->flags & FMT_leftside; l = va_arg(f->args, List *); sep = va_arg(f->args, char *); if (l == NULL && (f->flags & FMT_leftside) == 0) @@ -298,7 +300,7 @@ static bool Lconv(Format *f, int ignore) { else { for (; l != NULL; l = n) { n = l->n; - fmtprint(f, (f->flags & FMT_leftside) ? "%s" : "%-S", l->w); + fmtprint(f, plain ? "%s" : "%-S", l->w); if (n != NULL) fmtputc(f, *sep); } } -- cgit v1.2.3