diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-01-16 02:56:48 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-01-16 02:56:48 +0000 |
commit | 95a98d61bcc1aaaa5e6e3155c99af5cdb4a72608 (patch) | |
tree | c8a89e763ac463c3c47b1123506560d692105a37 /usr.bin/mandoc/mdoc_term.c | |
parent | 57acadac999e4338490c1732cad3c069449eca78 (diff) |
If the first character of a free-form text input line is whitespace,
then it will start a new output line;
from kristaps@.
Diffstat (limited to 'usr.bin/mandoc/mdoc_term.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index 0ab17e294c2..eeece6df44c 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.123 2011/01/09 16:09:41 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.124 2011/01/16 02:56:47 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -311,6 +311,8 @@ print_mdoc_node(DECL_ARGS) switch (n->type) { case (MDOC_TEXT): + if (' ' == *n->string && MDOC_LINE & n->flags) + term_newln(p); term_word(p, n->string); break; case (MDOC_TBL): |