diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-03 23:24:56 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-03 23:24:56 +0000 |
commit | 0b83ee04e7ac6e2aa80a8ca4dffb138d731aa026 (patch) | |
tree | 4dc4320a9ef76ec794c21d79e0adb0624a2354ae /mdoc_term.c | |
parent | b20db833ab9fe345d4463b10d6fa74aa21c49aca (diff) | |
download | mandoc-0b83ee04e7ac6e2aa80a8ca4dffb138d731aa026.tar.gz mandoc-0b83ee04e7ac6e2aa80a8ca4dffb138d731aa026.tar.zst mandoc-0b83ee04e7ac6e2aa80a8ca4dffb138d731aa026.zip |
Fix formatting of empty .Bl -inset item heads.
Downgrade empty item heads from ERROR to WARNING.
Show the list type in the error message.
Choose better variable names for nodes in post_it().
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 7a007e84..74f86dfb 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.269 2014/07/02 19:55:10 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.270 2014/07/03 23:24:56 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -747,7 +747,7 @@ termp_it_pre(DECL_ARGS) term_word(p, "\\ \\ "); break; case LIST_inset: - if (MDOC_BODY == n->type) + if (MDOC_BODY == n->type && n->parent->head->nchild) term_word(p, "\\ "); break; default: |