diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-09 22:36:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-09 22:36:34 +0000 |
commit | 73cf0389a7a1eeee26f8a5014fc912643896ac80 (patch) | |
tree | 71fb93e7b0a3174df67d9befb93aa60b81f9c0be /mdoc_man.c | |
parent | 440b9016f8a464cc4ba637677b3ba8509d802e08 (diff) | |
download | mandoc-73cf0389a7a1eeee26f8a5014fc912643896ac80.tar.gz |
implement -Tman .Eo and .Ec; OpenBSD rev. 1.26
Diffstat (limited to 'mdoc_man.c')
-rw-r--r-- | mdoc_man.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -48,6 +48,7 @@ static void post_bf(DECL_ARGS); static void post_bk(DECL_ARGS); static void post_dl(DECL_ARGS); static void post_enc(DECL_ARGS); +static void post_eo(DECL_ARGS); static void post_fa(DECL_ARGS); static void post_fl(DECL_ARGS); static void post_fn(DECL_ARGS); @@ -169,10 +170,10 @@ static const struct manact manacts[MDOC_MAX + 1] = { { NULL, NULL, NULL, NULL, NULL }, /* Dc */ { cond_body, pre_enc, post_enc, "``", "''" }, /* Do */ { cond_body, pre_enc, post_enc, "``", "''" }, /* Dq */ - { NULL, NULL, NULL, NULL, NULL }, /* _Ec */ - { NULL, NULL, NULL, NULL, NULL }, /* _Ef */ + { NULL, NULL, NULL, NULL, NULL }, /* Ec */ + { NULL, NULL, NULL, NULL, NULL }, /* Ef */ { NULL, pre_em, post_font, NULL, NULL }, /* Em */ - { NULL, NULL, NULL, NULL, NULL }, /* _Eo */ + { NULL, NULL, post_eo, NULL, NULL }, /* Eo */ { NULL, pre_ux, NULL, "FreeBSD", NULL }, /* Fx */ { NULL, pre_sy, post_font, NULL, NULL }, /* Ms */ { NULL, pre_no, NULL, NULL, NULL }, /* No */ @@ -756,6 +757,14 @@ pre_em(DECL_ARGS) return(1); } +static void +post_eo(DECL_ARGS) +{ + + if (MDOC_HEAD == n->type || MDOC_BODY == n->type) + outflags &= ~MMAN_spc; +} + static int pre_fa(DECL_ARGS) { |