diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-07 21:44:49 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-07 21:44:49 +0000 |
commit | bf613120dfc2a2535733958c9a59a47389bcf336 (patch) | |
tree | a49cf299a9d9991bab63f034fdab37f8b6a656d9 /man_term.c | |
parent | df7add94ac0e6037b421b622febfdbe3236dad5c (diff) | |
download | mandoc-bf613120dfc2a2535733958c9a59a47389bcf336.tar.gz |
implement .DT in terms of .ta; needed for print/ghostview, for example
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -68,6 +68,7 @@ static void print_bvspace(struct termp *, const struct roff_node *, int); static int pre_B(DECL_ARGS); +static int pre_DT(DECL_ARGS); static int pre_HP(DECL_ARGS); static int pre_I(DECL_ARGS); static int pre_IP(DECL_ARGS); @@ -117,7 +118,7 @@ static const struct termact __termacts[MAN_MAX - MAN_TH] = { { pre_literal, NULL, 0 }, /* fi */ { NULL, NULL, 0 }, /* RE */ { pre_RS, post_RS, 0 }, /* RS */ - { pre_ign, NULL, 0 }, /* DT */ + { pre_DT, NULL, 0 }, /* DT */ { pre_ign, NULL, MAN_NOTEXT }, /* UC */ { pre_PD, NULL, MAN_NOTEXT }, /* PD */ { pre_ign, NULL, 0 }, /* AT */ @@ -392,6 +393,15 @@ pre_in(DECL_ARGS) } static int +pre_DT(DECL_ARGS) +{ + term_tab_set(p, NULL); + term_tab_set(p, "T"); + term_tab_set(p, ".5i"); + return 0; +} + +static int pre_HP(DECL_ARGS) { struct roffsu su; |