summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-27 10:21:38 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-27 10:21:38 +0000
commit3ec2ac2ef7415dc79a5da65d2034a19e289cbb8f (patch)
treefa32e2fd2d0059e1a67465a23e5d6eb2a8801482
parentac31de5ed982876e58850bd26a5055517e50efbb (diff)
downloadmandoc-3ec2ac2ef7415dc79a5da65d2034a19e289cbb8f.tar.gz
*** empty log message ***
-rw-r--r--man.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/man.c b/man.c
index 1c85c0fe..0b5d0d8a 100644
--- a/man.c
+++ b/man.c
@@ -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;