summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;