diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-07 14:05:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-07 14:05:40 +0000 |
commit | 01276e7d675ac411c2f8156bd9a6a92c66118a71 (patch) | |
tree | 52e6a330aead78796e19ef45611ed3fcedd25daa | |
parent | 2f96f4d0ded8a444fa65673b11c79d9f127184ca (diff) | |
download | mandoc-01276e7d675ac411c2f8156bd9a6a92c66118a71.tar.gz |
after .Lb in library section, break the line in the final output
-rw-r--r-- | mdoc_man.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -53,6 +53,7 @@ static void post_bd(DECL_ARGS); static void post_bk(DECL_ARGS); static void post_dl(DECL_ARGS); static void post_enc(DECL_ARGS); +static void post_lb(DECL_ARGS); static void post_nm(DECL_ARGS); static void post_percent(DECL_ARGS); static void post_pf(DECL_ARGS); @@ -191,7 +192,7 @@ static const struct manact manacts[MDOC_MAX + 1] = { { NULL, NULL, NULL, NULL, NULL }, /* Hf */ { NULL, NULL, NULL, NULL, NULL }, /* Fr */ { NULL, pre_ux, NULL, "currently under development.", NULL }, /* Ud */ - { NULL, NULL, NULL, NULL, NULL }, /* _Lb */ + { NULL, NULL, post_lb, NULL, NULL }, /* Lb */ { NULL, pre_pp, NULL, NULL, NULL }, /* Lp */ { NULL, NULL, NULL, NULL, NULL }, /* _Lk */ { NULL, NULL, NULL, NULL, NULL }, /* _Mt */ @@ -609,6 +610,17 @@ pre_it(DECL_ARGS) return(1); } +static void +post_lb(DECL_ARGS) +{ + + if (SEC_LIBRARY == n->sec) { + mm->need_nl = 1; + print_word(mm, ".br"); + mm->need_nl = 1; + } +} + static int pre_nm(DECL_ARGS) { |