diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-12 10:43:22 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-12 10:43:22 +0000 |
commit | 2bf82dba54d0ddc4e85c60a1627506ced02908f0 (patch) | |
tree | a82dabc3e5509d2cd4a383b5799e38c3a7615bbd /mdoc_term.c | |
parent | d184f91df1cea2fba0dbd3f880de0a6e9f7b84ac (diff) | |
download | mandoc-2bf82dba54d0ddc4e85c60a1627506ced02908f0.tar.gz |
If the first character of free-form text is whitespace, then a newline
shall precede outputted text (surprise!).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index aa8b00f4..1d01baca 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -315,6 +315,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): |