diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-04 22:16:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-04 22:16:09 +0000 |
commit | 9ec7fd0e6d519550b4d3ae0ae9dd5c53d10e6cab (patch) | |
tree | afaaee54c2f56b82235088f352b9382a1117f9d6 /mdoc_term.c | |
parent | 5fbabdf032b370e99e8685958b6e15eb3b2ff0f7 (diff) | |
download | mandoc-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.c | 8 |
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); |