summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-04 22:16:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-04 22:16:09 +0000
commit9ec7fd0e6d519550b4d3ae0ae9dd5c53d10e6cab (patch)
treeafaaee54c2f56b82235088f352b9382a1117f9d6 /mdoc_term.c
parent5fbabdf032b370e99e8685958b6e15eb3b2ff0f7 (diff)
downloadmandoc-9ec7fd0e6d519550b4d3ae0ae9dd5c53d10e6cab.tar.gz
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.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 849fc894..503ce71f 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -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);