diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-02 12:33:36 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-02 12:33:36 +0000 |
commit | dfc72caad2158b1226363fe39e7bfa995ef68f78 (patch) | |
tree | eb50cef13467679b333952697b5e1d3d599919d0 /html.h | |
parent | 5c2a309a34544b8ce4a9f64845f876bc1bc560f3 (diff) | |
download | mandoc-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 'html.h')
-rw-r--r-- | html.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.92 2018/06/25 16:54:59 schwarze Exp $ */ +/* $Id: html.h,v 1.93 2018/10/02 12:33:37 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 */ |