From ccdc28b884f5297f967078a51434c264fafd91ae Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 4 Mar 2009 14:41:40 +0000 Subject: -tag, if followed by empty body, doesn't newline. Versioning up. --- term.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'term.c') 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 * @@ -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 ? "," : "."); } -- cgit v1.2.3