summaryrefslogtreecommitdiffstats
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-03-30 19:47:48 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-03-30 19:47:48 +0000
commitb0b643c847c8a9530fc19fc081c52b9b6f5159dd (patch)
treeee93f2fc78dc0fddd4abbfdcd79f9df0714656ed /mdoc_man.c
parent1f5b9d128ee296272c97a8e1a191d09c75b10fd1 (diff)
downloadmandoc-b0b643c847c8a9530fc19fc081c52b9b6f5159dd.tar.gz
Implement the roff(7) .ll (line length) request.
Found by naddy@ in the textproc/enchant(1) port. Of course, do not use this in new manuals.
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index a6a9fa05..44039ab4 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -90,6 +90,7 @@ static int pre_in(DECL_ARGS);
static int pre_it(DECL_ARGS);
static int pre_lk(DECL_ARGS);
static int pre_li(DECL_ARGS);
+static int pre_ll(DECL_ARGS);
static int pre_nm(DECL_ARGS);
static int pre_no(DECL_ARGS);
static int pre_ns(DECL_ARGS);
@@ -241,6 +242,7 @@ static const struct manact manacts[MDOC_MAX + 1] = {
{ NULL, pre_sp, post_sp, NULL, NULL }, /* sp */
{ NULL, NULL, post_percent, NULL, NULL }, /* %U */
{ NULL, NULL, NULL, NULL, NULL }, /* Ta */
+ { NULL, pre_ll, post_sp, NULL, NULL }, /* ll */
{ NULL, NULL, NULL, NULL, NULL }, /* ROOT */
};
@@ -1406,6 +1408,14 @@ pre_lk(DECL_ARGS)
}
static int
+pre_ll(DECL_ARGS)
+{
+
+ print_line(".ll", 0);
+ return(1);
+}
+
+static int
pre_li(DECL_ARGS)
{