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 | ccdc28b884f5297f967078a51434c264fafd91ae (patch) | |
tree | 7941f6768c714afc0338272c920dedfcd887032f /term.c | |
parent | e85f62dedbf5704d3f7c3d4e228515d52bfc9e30 (diff) | |
download | mandoc-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 ? "," : "."); } |