summaryrefslogtreecommitdiffstats
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
commit9e238facdedce54e6eeccb030929d4b3893df873 (patch)
treeaf1153e654b28c1021d8c3934f87d6691336566e /mdoc_html.c
parent2b5f7b1a9ecbfb46e4d111a73e873c9ac394f261 (diff)
downloadmandoc-9e238facdedce54e6eeccb030929d4b3893df873.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 7974605e..c66160df 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -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);