From b86b856fc5c5e1242349cefc1691b33efea97669 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 27 Mar 2010 10:21:38 +0000 Subject: *** empty log message *** --- man.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'man.c') diff --git a/man.c b/man.c index 9dceb790..edcd44ba 100644 --- a/man.c +++ b/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.55 2010/03/27 10:04:56 kristaps Exp $ */ +/* $Id: man.c,v 1.56 2010/03/27 10:21:38 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -492,9 +492,13 @@ man_pmacro(struct man *m, int ln, char *buf) i = 1; + /* + * Skip whitespace between the control character and initial + * text. "Whitespace" is both spaces and tabs. + */ if (' ' == buf[i]) { i++; - while (buf[i] && ' ' == buf[i]) + while (buf[i] && (' ' == buf[i] || '\t' == buf[i])) i++; if ('\0' == buf[i]) goto out; -- cgit v1.2.3