diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-24 11:54:25 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-24 11:54:25 +0000 |
commit | 3750eff2e772d68cf2aec04f8b0840199724fa73 (patch) | |
tree | 26fd33da5061e651128ccba6f6490dd9ba5d6844 | |
parent | 9461c647215f0f5428b0307b6ce05fdcba582006 (diff) | |
download | mandoc-3750eff2e772d68cf2aec04f8b0840199724fa73.tar.gz mandoc-3750eff2e772d68cf2aec04f8b0840199724fa73.tar.zst mandoc-3750eff2e772d68cf2aec04f8b0840199724fa73.zip |
Text tokens with leading whitespace (like indented blocks in `Bd -literal') are printed correctly.
-rw-r--r-- | term.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.92 2009/07/23 08:35:22 kristaps Exp $ */ +/* $Id: term.c,v 1.93 2009/07/24 11:54:25 kristaps 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--; |