summaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 20:50:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 20:50:12 +0000
commitc744f48b5fc53bd65103347682c3cb21e22e93aa (patch)
treef4b63562c1373a7270f223f1d88350daedfd38c3 /term.c
parent5410a79872e5e765de34d19df2959124707f5c9f (diff)
downloadmandoc-c744f48b5fc53bd65103347682c3cb21e22e93aa.tar.gz
mandoc-c744f48b5fc53bd65103347682c3cb21e22e93aa.tar.zst
mandoc-c744f48b5fc53bd65103347682c3cb21e22e93aa.zip
Added .Ap.
Diffstat (limited to 'term.c')
-rw-r--r--term.c16
1 files changed, 15 insertions, 1 deletions
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 <kristaps@kth.se>
*
@@ -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;
@@ -1700,6 +1702,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)
{