summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 14:41:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-04 14:41:40 +0000
commit9e132a57b087be87cd731dd96397d9cc75b7bfa3 (patch)
tree5d462816189ff0f2fcc3afe8367da07dc04140d2 /term.c
parent915fb21ef547b551114dab3787540221a2172ae9 (diff)
downloadmandoc-9e132a57b087be87cd731dd96397d9cc75b7bfa3.tar.gz
-tag, if followed by empty body, doesn't newline.
Versioning up.
Diffstat (limited to 'term.c')
-rw-r--r--term.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/term.c b/term.c
index 33a86cdb..6a5c8c19 100644
--- a/term.c
+++ b/term.c
@@ -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 ? "," : ".");
}