summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-24 11:54:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-24 11:54:25 +0000
commitf567494c37b88cb10f77f60250f709af51cb57e7 (patch)
tree29886547353af33c0a2dbd38441822f002eb98c3 /term.c
parent938327e063b7635e0ec4f645185878cbe54f1581 (diff)
downloadmandoc-f567494c37b88cb10f77f60250f709af51cb57e7.tar.gz
Text tokens with leading whitespace (like indented blocks in `Bd -literal') are printed correctly.
Diffstat (limited to 'term.c')
-rw-r--r--term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term.c b/term.c
index 55be53a7..028d4f2a 100644
--- a/term.c
+++ b/term.c
@@ -259,7 +259,7 @@ term_flushln(struct termp *p)
/* LINTED */
for (j = i, vsz = 0; j < (int)p->col; j++) {
- if (' ' == p->buf[j])
+ if (j && ' ' == p->buf[j])
break;
else if (8 == p->buf[j])
vsz--;