diff options
-rw-r--r-- | mdoc_man.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -290,7 +290,7 @@ print_node(DECL_ARGS) * This makes the page structure be more consistent. */ prev = n->prev ? n->prev : n->parent; - if (prev && prev->line < n->line) + if (prev && prev->line < n->line && MDOC_Ns != prev->tok) mm->need_nl = 1; act = NULL; @@ -379,6 +379,8 @@ post_enc(DECL_ARGS) return; mm->need_space = 0; print_word(mm, suffix); + if (MDOC_Fl == n->tok && 0 == n->nchild) + mm->need_space = 0; } /* @@ -544,6 +546,11 @@ pre_nm(DECL_ARGS) if (MDOC_ELEM != n->type && MDOC_HEAD != n->type) return(1); + if (MDOC_SYNPRETTY & n->flags) { + mm->need_nl = 1; + print_word(mm, ".br"); + mm->need_nl = 1; + } print_word(mm, "\\fB"); mm->need_space = 0; if (NULL == n->child) @@ -586,7 +593,7 @@ pre_pp(DECL_ARGS) else print_word(mm, ".PP"); mm->need_nl = 1; - return(1); + return(MDOC_Rs == n->tok); } static int |