From 1193a9f5cfb0cbb5a35ccca02a5968b39620f1db Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 3 Apr 2010 14:25:12 +0000 Subject: Merged patch by Ingo Schwarze allowing `Xr' to pass through with no arguments (emits warning of course). --- mdoc_html.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mdoc_html.c') 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 * @@ -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) { -- cgit v1.2.3