From c744f48b5fc53bd65103347682c3cb21e22e93aa Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 8 Mar 2009 20:50:12 +0000 Subject: Added .Ap. --- term.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'term.c') diff --git a/term.c b/term.c index fa8e58cc..38b44de8 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.47 2009/03/08 19:38:08 kristaps Exp $ */ +/* $Id: term.c,v 1.48 2009/03/08 20:50:12 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -130,6 +130,7 @@ DECL_PREPOST(termp_ss); DECL_PREPOST(termp_sq); DECL_PREPOST(termp_vt); +DECL_PRE(termp_ap); DECL_PRE(termp_ar); DECL_PRE(termp_at); DECL_PRE(termp_bf); @@ -274,6 +275,7 @@ const struct termact __termacts[MDOC_MAX] = { { NULL, NULL }, /* Fr */ { termp_ud_pre, NULL }, /* Ud */ { termp_lb_pre, termp_lb_post }, /* Lb */ + { termp_ap_pre, NULL }, /* Lb */ }; const struct termact *termacts = __termacts; @@ -1698,6 +1700,18 @@ termp_sm_pre(DECL_ARGS) } +/* ARGSUSED */ +static int +termp_ap_pre(DECL_ARGS) +{ + + p->flags |= TERMP_NOSPACE; + word(p, "\\(aq"); + p->flags |= TERMP_NOSPACE; + return(1); +} + + /* ARGSUSED */ static int termp__t_pre(DECL_ARGS) -- cgit v1.2.3