diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-10-02 12:32:56 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-10-02 12:32:56 +0000 |
commit | f4278ea97856210fca6852a217027b980dd8f3c3 (patch) | |
tree | 560b4ed6b18007ad863561cc8e03d3e6631538e2 /usr.bin/mandoc/html.h | |
parent | 53efc0197c71f0837a7acc96ed7613b126c73fc8 (diff) |
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 'usr.bin/mandoc/html.h')
-rw-r--r-- | usr.bin/mandoc/html.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h index 750c4b7e095..700eca2bc18 100644 --- a/usr.bin/mandoc/html.h +++ b/usr.bin/mandoc/html.h @@ -1,4 +1,4 @@ -/* $OpenBSD: html.h,v 1.54 2018/06/25 16:54:55 schwarze Exp $ */ +/* $OpenBSD: html.h,v 1.55 2018/10/02 12:32:55 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -101,7 +101,8 @@ struct html { struct tag *tag; /* last open tag */ struct rofftbl tbl; /* current table */ struct tag *tblt; /* current open table scope */ - char *base_man; /* base for manpage href */ + char *base_man1; /* bases for manpage href */ + char *base_man2; char *base_includes; /* base for include href */ char *style; /* style-sheet URI */ struct tag *metaf; /* current open font scope */ |