=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.54 retrieving revision 1.56 diff -u -p -r1.54 -r1.56 --- mandoc/mdoc_html.c 2010/01/30 08:42:20 1.54 +++ mandoc/mdoc_html.c 2010/04/03 14:25:12 1.56 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.54 2010/01/30 08:42:20 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.56 2010/04/03 14:25:12 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -200,7 +200,7 @@ static const struct htmlmdoc mdocs[MDOC_MAX] = { {NULL, NULL}, /* Dc */ {mdoc_dq_pre, mdoc_dq_post}, /* Do */ {mdoc_dq_pre, mdoc_dq_post}, /* Dq */ - {NULL, NULL}, /* Ec */ + {NULL, NULL}, /* Ec */ /* FIXME: no space */ {NULL, NULL}, /* Ef */ {mdoc_em_pre, NULL}, /* Em */ {NULL, NULL}, /* Eo */ @@ -755,6 +755,9 @@ mdoc_xr_pre(MDOC_ARGS) { struct htmlpair tag[2]; const struct mdoc_node *nn; + + if (NULL == n->child) + return(0); PAIR_CLASS_INIT(&tag[0], "link-man");