summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-27 10:26:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-27 10:26:39 +0000
commit209a6b7b995332364c7339206aebe9b564701a21 (patch)
tree2cd48ce21718bcca36edb1b9b46e18c277e0e257
parent2d5d3d7857a61439fe8071cda260d33ebd7a4ee6 (diff)
downloadmandoc-209a6b7b995332364c7339206aebe9b564701a21.tar.gz
mandoc-209a6b7b995332364c7339206aebe9b564701a21.tar.zst
mandoc-209a6b7b995332364c7339206aebe9b564701a21.zip
Last fix for tabs/spaces between control character and macro. egcs gcc.1 is now handled.VERSION_1_9_18
-rw-r--r--man.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man.c b/man.c
index edcd44ba..6d735169 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.56 2010/03/27 10:21:38 kristaps Exp $ */
+/* $Id: man.c,v 1.57 2010/03/27 10:26:39 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -496,7 +496,7 @@ man_pmacro(struct man *m, int ln, char *buf)
* Skip whitespace between the control character and initial
* text. "Whitespace" is both spaces and tabs.
*/
- if (' ' == buf[i]) {
+ if (' ' == buf[i] || '\t' == buf[i]) {
i++;
while (buf[i] && (' ' == buf[i] || '\t' == buf[i]))
i++;