=================================================================== RCS file: /cvs/mandoc/mdoc_man.c,v retrieving revision 1.129 retrieving revision 1.131 diff -u -p -r1.129 -r1.131 --- mandoc/mdoc_man.c 2018/12/03 21:00:10 1.129 +++ mandoc/mdoc_man.c 2018/12/30 00:49:55 1.131 @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.129 2018/12/03 21:00:10 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.131 2018/12/30 00:49:55 schwarze Exp $ */ /* * Copyright (c) 2011-2018 Ingo Schwarze * @@ -325,6 +325,7 @@ man_strlen(const char *cp) case ESCAPE_UNICODE: case ESCAPE_NUMBERED: case ESCAPE_SPECIAL: + case ESCAPE_UNDEF: case ESCAPE_OVERSTRIKE: if (skip) skip = 0; @@ -601,7 +602,7 @@ print_count(int *count) } void -man_mdoc(void *arg, const struct roff_man *mdoc) +man_mdoc(void *arg, const struct roff_meta *mdoc) { struct roff_node *n; @@ -614,9 +615,8 @@ man_mdoc(void *arg, const struct roff_man *mdoc) } printf(".TH \"%s\" \"%s\" \"%s\" \"%s\" \"%s\"\n", - mdoc->meta.title, - (mdoc->meta.msec == NULL ? "" : mdoc->meta.msec), - mdoc->meta.date, mdoc->meta.os, mdoc->meta.vol); + mdoc->title, (mdoc->msec == NULL ? "" : mdoc->msec), + mdoc->date, mdoc->os, mdoc->vol); /* Disable hyphenation and if nroff, disable justification. */ printf(".nh\n.if n .ad l"); @@ -628,7 +628,7 @@ man_mdoc(void *arg, const struct roff_man *mdoc) *fontqueue.tail = 'R'; } for (; n != NULL; n = n->next) - print_node(&mdoc->meta, n); + print_node(mdoc, n); putchar('\n'); }