From 1ab4ebe5662ad82d7ab745fdb9c8124e07630673 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 6 Jun 2017 15:01:04 +0000 Subject: Minimal implementation of the roff(7) .ce request (center a number of input lines without filling). Contrary to groff, high-level macros abort .ce mode for now. --- mdoc_man.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mdoc_man.c') diff --git a/mdoc_man.c b/mdoc_man.c index afee4466..5e628345 100644 --- a/mdoc_man.c +++ b/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.117 2017/06/04 22:44:15 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.118 2017/06/06 15:01:04 schwarze Exp $ */ /* * Copyright (c) 2011-2017 Ingo Schwarze * @@ -126,6 +126,7 @@ static void print_node(DECL_ARGS); static const void_fp roff_manacts[ROFF_MAX] = { pre_br, + pre_onearg, pre_ft, pre_onearg, pre_onearg, @@ -1582,6 +1583,9 @@ pre_onearg(DECL_ARGS) if (n->child != NULL) print_word(n->child->string); outflags |= MMAN_nl; + if (n->tok == ROFF_ce) + for (n = n->child->next; n != NULL; n = n->next) + print_node(meta, n); } static int -- cgit v1.2.3