diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-04 14:41:40 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-04 14:41:40 +0000 |
commit | 9e132a57b087be87cd731dd96397d9cc75b7bfa3 (patch) | |
tree | 5d462816189ff0f2fcc3afe8367da07dc04140d2 /term.c | |
parent | 915fb21ef547b551114dab3787540221a2172ae9 (diff) | |
download | mandoc-9e132a57b087be87cd731dd96397d9cc75b7bfa3.tar.gz |
-tag, if followed by empty body, doesn't newline.
Versioning up.
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -536,6 +536,10 @@ termp_it_pre(DECL_ARGS) p->flags |= TERMP_NOBREAK; else p->flags |= TERMP_NOLPAD; + if (MDOC_HEAD == node->type && MDOC_Tag == type) + if (NULL == node->next || + NULL == node->next->child) + p->flags |= TERMP_NONOBREAK; break; case (MDOC_Diag): if (MDOC_HEAD == node->type) @@ -1662,6 +1666,7 @@ static int termp__t_pre(DECL_ARGS) { + /* FIXME: titles are underlined. */ word(p, "\""); p->flags |= TERMP_NOSPACE; return(1); @@ -1674,6 +1679,7 @@ termp__t_post(DECL_ARGS) { p->flags |= TERMP_NOSPACE; + /* FIXME: titles are underlined. */ word(p, "\""); word(p, node->next ? "," : "."); } |