From d4309408b94eb36fcea040582e8579967cb7878b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 4 May 2017 22:16:09 +0000 Subject: Start roff formatter modules for HTML and termininal output, used by both the mdoc and man formatters, with the ultimate goal of reducing code duplication between the two macro formatters. Made possible by the parser unification. Add the first formatting function (for the .br request). --- mdoc_term.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'mdoc_term.c') diff --git a/mdoc_term.c b/mdoc_term.c index 12cd0336..327ecea3 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.351 2017/05/04 17:48:29 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.352 2017/05/04 22:16:09 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012-2017 Ingo Schwarze @@ -365,13 +365,7 @@ print_mdoc_node(DECL_ARGS) break; default: if (n->tok < ROFF_MAX) { - switch (n->tok) { - case ROFF_br: - termp_sp_pre(p, &npair, meta, n); - break; - default: - abort(); - } + roff_term_pre(p, n); break; } assert(n->tok >= MDOC_Dd && n->tok < MDOC_MAX); -- cgit v1.2.3