aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-04-03 14:25:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-04-03 14:25:12 +0000
commit1193a9f5cfb0cbb5a35ccca02a5968b39620f1db (patch)
treeba1574822a183020ad34c3f733a1c7b43c976dfd /mdoc_html.c
parentc5cc5653b8df9a14f906682370580c05ea5b20ee (diff)
downloadmandoc-1193a9f5cfb0cbb5a35ccca02a5968b39620f1db.tar.gz
mandoc-1193a9f5cfb0cbb5a35ccca02a5968b39620f1db.tar.zst
mandoc-1193a9f5cfb0cbb5a35ccca02a5968b39620f1db.zip
Merged patch by Ingo Schwarze allowing `Xr' to pass through with no arguments (emits warning of course).
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index b6d6e8a5..7c99cad8 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.55 2010/03/29 19:28:04 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.56 2010/04/03 14:25:12 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -756,6 +756,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");
if (h->base_man) {