=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_html.c,v retrieving revision 1.128 retrieving revision 1.129 diff -c -r1.128 -r1.129 *** src/usr.bin/mandoc/mdoc_html.c 2017/01/19 15:27:26 1.128 --- src/usr.bin/mandoc/mdoc_html.c 2017/01/19 15:48:34 1.129 *************** *** 1,4 **** ! /* $OpenBSD: mdoc_html.c,v 1.128 2017/01/19 15:27:26 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: mdoc_html.c,v 1.129 2017/01/19 15:48:34 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze *************** *** 46,51 **** --- 46,52 ---- void (*post)(MDOC_ARGS); }; + static char *make_id(const struct roff_node *); static void print_mdoc_head(MDOC_ARGS); static void print_mdoc_node(MDOC_ARGS); static void print_mdoc_nodelist(MDOC_ARGS); *************** *** 490,496 **** return 1; } ! char * make_id(const struct roff_node *n) { const struct roff_node *nch; --- 491,497 ---- return 1; } ! static char * make_id(const struct roff_node *n) { const struct roff_node *nch; *************** *** 633,643 **** return 0; if (h->base_man) ! print_otag(h, TAG_A, "chM", "link-man", n->child->string, n->child->next == NULL ? NULL : n->child->next->string); else ! print_otag(h, TAG_A, "c", "link-man"); n = n->child; print_text(h, n->string); --- 634,644 ---- return 0; if (h->base_man) ! print_otag(h, TAG_A, "chM", "Xr", n->child->string, n->child->next == NULL ? NULL : n->child->next->string); else ! print_otag(h, TAG_A, "c", "Xr"); n = n->child; print_text(h, n->string); *************** *** 860,871 **** { char *id; - print_otag(h, TAG_I, "c", "link-sec"); if ((id = make_id(n)) != NULL) { ! print_otag(h, TAG_A, "chR", "link-sec", id); free(id); } else ! print_otag(h, TAG_A, "c", "link-sec"); return 1; } --- 861,871 ---- { char *id; if ((id = make_id(n)) != NULL) { ! print_otag(h, TAG_A, "chR", "Sx", id); free(id); } else ! print_otag(h, TAG_A, "c", "Sx"); return 1; }