diff options
author | 2017-05-04 22:16:09 +0000 | |
---|---|---|
committer | 2017-05-04 22:16:09 +0000 | |
commit | d4309408b94eb36fcea040582e8579967cb7878b (patch) | |
tree | 44fea1faa208f7aa8d912a43b25ee25ae1c50375 /mdoc_term.c | |
parent | 6cff4f9d35431af8274477e9e1cd8dbb193f159a (diff) | |
download | mandoc-d4309408b94eb36fcea040582e8579967cb7878b.tar.gz mandoc-d4309408b94eb36fcea040582e8579967cb7878b.tar.zst mandoc-d4309408b94eb36fcea040582e8579967cb7878b.zip |
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).
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 10 |
1 files changed, 2 insertions, 8 deletions
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 <kristaps@bsd.lv> * Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |