summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-17 10:56:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-17 10:56:57 +0000
commite9573f136b1ae4896155ec0066bf3f7ef8bd4de0 (patch)
treea381f04866bc6e23d3d8336d4560a7a34f9c2721 /mdoc_term.c
parent29d2cd44871e73c9fa0e17ee3a7171e571619a84 (diff)
downloadmandoc-e9573f136b1ae4896155ec0066bf3f7ef8bd4de0.tar.gz
Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index e4a3bdc5..016e8a62 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -130,6 +130,7 @@ static int termp_ar_pre(DECL_ARGS);
static int termp_bd_pre(DECL_ARGS);
static int termp_bf_pre(DECL_ARGS);
static int termp_bq_pre(DECL_ARGS);
+static int termp_br_pre(DECL_ARGS);
static int termp_brq_pre(DECL_ARGS);
static int termp_bt_pre(DECL_ARGS);
static int termp_cd_pre(DECL_ARGS);
@@ -292,6 +293,8 @@ static const struct termact termacts[MDOC_MAX] = {
{ NULL, NULL }, /* En */
{ termp_xx_pre, NULL }, /* Dx */
{ NULL, NULL }, /* %Q */
+ { termp_br_pre, NULL }, /* br */
+ { NULL, NULL }, /* sp */
};
#ifdef __linux__
@@ -1830,6 +1833,16 @@ termp_in_post(DECL_ARGS)
/* ARGSUSED */
static int
+termp_br_pre(DECL_ARGS)
+{
+
+ term_newln(p);
+ return(1);
+}
+
+
+/* ARGSUSED */
+static int
termp_brq_pre(DECL_ARGS)
{