summaryrefslogtreecommitdiffstatshomepage
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
commit72e26562c1fc079294e29413bc0fc473e7be3bef (patch)
tree2a32a18c956c409bc6579655ba945ef4ebdb1180 /mdoc_term.c
parent7fafcb2c03b038694a5b491d804a46d7436cc167 (diff)
downloadmandoc-72e26562c1fc079294e29413bc0fc473e7be3bef.tar.gz
mandoc-72e26562c1fc079294e29413bc0fc473e7be3bef.tar.zst
mandoc-72e26562c1fc079294e29413bc0fc473e7be3bef.zip
Added `br' and `sp' macros (requested by joerg@netbsd.org, jmc@openbsd.org).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index ea58a790..41338aa5 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.43 2009/07/16 13:27:24 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.44 2009/07/17 10:56:57 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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)
{