diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-27 10:21:38 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-27 10:21:38 +0000 |
commit | b86b856fc5c5e1242349cefc1691b33efea97669 (patch) | |
tree | 4e58486a33d8153b247ae8946153b1edc9a68a05 /man.c | |
parent | b9e783618510e16c5a5f3b9826921a53b7a7980e (diff) | |
download | mandoc-b86b856fc5c5e1242349cefc1691b33efea97669.tar.gz mandoc-b86b856fc5c5e1242349cefc1691b33efea97669.tar.zst mandoc-b86b856fc5c5e1242349cefc1691b33efea97669.zip |
*** empty log message ***
Diffstat (limited to 'man.c')
-rw-r--r-- | man.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 <kristaps@kth.se> * @@ -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; |