summaryrefslogtreecommitdiffstatshomepage
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
commitccdc28b884f5297f967078a51434c264fafd91ae (patch)
tree7941f6768c714afc0338272c920dedfcd887032f /term.c
parente85f62dedbf5704d3f7c3d4e228515d52bfc9e30 (diff)
downloadmandoc-ccdc28b884f5297f967078a51434c264fafd91ae.tar.gz
mandoc-ccdc28b884f5297f967078a51434c264fafd91ae.tar.zst
mandoc-ccdc28b884f5297f967078a51434c264fafd91ae.zip
-tag, if followed by empty body, doesn't newline.
Versioning up.
Diffstat (limited to 'term.c')
-rw-r--r--term.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/term.c b/term.c
index 956bc1d6..76fced1e 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.40 2009/03/04 14:13:05 kristaps Exp $ */
+/* $Id: term.c,v 1.41 2009/03/04 14:41:40 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 ? "," : ".");
}