summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-05-04 17:48:28 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-05-04 17:48:28 +0000
commit5fbabdf032b370e99e8685958b6e15eb3b2ff0f7 (patch)
tree56bbeb9f07b66610d5173e36db18df3fba402155 /man_html.c
parent90c0bcfc5ca59192e72f849591c6ec10e8048bf0 (diff)
downloadmandoc-5fbabdf032b370e99e8685958b6e15eb3b2ff0f7.tar.gz
Parser reorg:
Generate the first node on the roff level: .br Fix some column numbers in diagnostic messages while here.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index 4f1043f1..5f5d65ff 100644
--- a/man_html.c
+++ b/man_html.c
@@ -92,7 +92,6 @@ static const struct htmlman __mans[MAN_MAX - MAN_TH] = {
{ man_I_pre, NULL }, /* I */
{ man_alt_pre, NULL }, /* IR */
{ man_alt_pre, NULL }, /* RI */
- { man_br_pre, NULL }, /* br */
{ man_br_pre, NULL }, /* sp */
{ NULL, NULL }, /* nf */
{ NULL, NULL }, /* fi */
@@ -305,6 +304,18 @@ print_man_node(MAN_ARGS)
print_tblclose(h);
t = h->tag;
+ if (n->tok < ROFF_MAX) {
+ switch(n->tok) {
+ case ROFF_br:
+ man_br_pre(man, n, h);
+ break;
+ default:
+ abort();
+ }
+ break;
+ }
+
+ assert(n->tok >= MAN_TH && n->tok < MAN_MAX);
if (mans[n->tok].pre)
child = (*mans[n->tok].pre)(man, n, h);