aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-10-02 12:33:36 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-10-02 12:33:36 +0000
commitdfc72caad2158b1226363fe39e7bfa995ef68f78 (patch)
treeeb50cef13467679b333952697b5e1d3d599919d0 /mdoc_html.c
parent5c2a309a34544b8ce4a9f64845f876bc1bc560f3 (diff)
downloadmandoc-dfc72caad2158b1226363fe39e7bfa995ef68f78.tar.gz
mandoc-dfc72caad2158b1226363fe39e7bfa995ef68f78.tar.zst
mandoc-dfc72caad2158b1226363fe39e7bfa995ef68f78.zip
Support a second argument to -O man,
selecting the format according to local existence of the file. Suggested by kristaps@ during EuroBSDCon 2018. Written on the train Frankfurt-Karlsruhe returning from EuroBSDCon.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 238fc799..fd181b60 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.311 2018/08/17 20:33:37 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.312 2018/10/02 12:33:37 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -611,7 +611,7 @@ mdoc_xr_pre(MDOC_ARGS)
if (NULL == n->child)
return 0;
- if (h->base_man)
+ if (h->base_man1)
print_otag(h, TAG_A, "cThM", "Xr",
n->child->string, n->child->next == NULL ?
NULL : n->child->next->string);