summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-08-09 21:28:58 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-08-09 21:28:58 +0000
commit0d3eb98a3a24806aba01117271894c75b9d78bab (patch)
treebc3337e7e614c2623ba19bf1db86570f3a2c2baa /usr.bin/mandoc/term.c
parent0f96e3e645995b11ca5b2678eac9fcb04a4e0c9e (diff)
sync to 1.8.4: preserve leading whitespace in literal text
Diffstat (limited to 'usr.bin/mandoc/term.c')
-rw-r--r--usr.bin/mandoc/term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c
index d6026aaac98..908040530b8 100644
--- a/usr.bin/mandoc/term.c
+++ b/usr.bin/mandoc/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.9 2009/08/09 18:43:29 schwarze Exp $ */
+/* $Id: term.c,v 1.10 2009/08/09 21:28:57 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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--;