diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-21 15:54:18 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-21 15:54:18 +0000 |
commit | 27ff99d8e4065865ec8cdbdb04a00bc5a4b7b225 (patch) | |
tree | 8f1f8fec0180a68da650c755421076e16567e378 /mdoc_term.c | |
parent | dcc60ee1fbb320277fbd7337f0b036e8604cd2a2 (diff) | |
download | mandoc-27ff99d8e4065865ec8cdbdb04a00bc5a4b7b225.tar.gz mandoc-27ff99d8e4065865ec8cdbdb04a00bc5a4b7b225.tar.zst mandoc-27ff99d8e4065865ec8cdbdb04a00bc5a4b7b225.zip |
Re-added `Pa' handling -- had removed it, but it's a bug in groff that it doesn't always render.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 2dcb0b73..8c868fc3 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.56 2009/07/21 15:39:04 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.57 2009/07/21 15:54:18 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -66,7 +66,7 @@ const int ttypes[TTYPE_NMAX] = { TERMP_UNDER, /* TTYPE_FUNC_ARG */ TERMP_UNDER, /* TTYPE_LINK */ TERMP_BOLD, /* TTYPE_SSECTION */ - 0, /* TTYPE_FILE */ + TERMP_UNDER, /* TTYPE_FILE */ TERMP_UNDER, /* TTYPE_EMPH */ TERMP_BOLD, /* TTYPE_CONFIG */ TERMP_BOLD, /* TTYPE_CMD */ @@ -155,6 +155,7 @@ static int termp_nd_pre(DECL_ARGS); static int termp_nm_pre(DECL_ARGS); static int termp_ns_pre(DECL_ARGS); static int termp_op_pre(DECL_ARGS); +static int termp_pa_pre(DECL_ARGS); static int termp_pf_pre(DECL_ARGS); static int termp_pp_pre(DECL_ARGS); static int termp_pq_pre(DECL_ARGS); @@ -210,7 +211,7 @@ static const struct termact termacts[MDOC_MAX] = { { termp_nm_pre, NULL }, /* Nm */ { termp_op_pre, termp_op_post }, /* Op */ { NULL, NULL }, /* Ot */ - { NULL, NULL }, /* Pa */ + { termp_pa_pre, NULL }, /* Pa */ { termp_rv_pre, NULL }, /* Rv */ { NULL, NULL }, /* St */ { termp_va_pre, NULL }, /* Va */ @@ -1734,6 +1735,16 @@ termp_sq_post(DECL_ARGS) /* ARGSUSED */ static int +termp_pa_pre(DECL_ARGS) +{ + + pair->flag |= ttypes[TTYPE_FILE]; + return(1); +} + + +/* ARGSUSED */ +static int termp_pf_pre(DECL_ARGS) { |