diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-03 15:26:26 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-03 15:26:26 +0000 |
commit | 38978c6f40cc37f32a8799d8b8e7e31e051eb2f1 (patch) | |
tree | b9782471b2e0293282cc029b94b082b90e18a94c /html.c | |
parent | 54bada649de2dc93dd974dabdb3c9a3c732571f5 (diff) | |
download | mandoc-38978c6f40cc37f32a8799d8b8e7e31e051eb2f1.tar.gz |
Added the -oincludes=FMT option.
The `In' handler now decorates with a hyperlink.
If no -oman= or -oincludes= is stipulated, no link is printed (but the text is still style-decorated).
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -73,6 +73,7 @@ static const char *const htmlattrs[ATTR_MAX] = { "style", "width", "valign", + "target", }; #ifdef __linux__ @@ -87,7 +88,8 @@ html_alloc(char *outopts) toks[0] = "style"; toks[1] = "man"; - toks[2] = NULL; + toks[2] = "includes"; + toks[3] = NULL; if (NULL == (h = calloc(1, sizeof(struct html)))) return(NULL); @@ -100,8 +102,6 @@ html_alloc(char *outopts) return(NULL); } - h->base_man = "%N.%S.html"; - while (outopts && *outopts) switch (getsubopt(&outopts, toks, &v)) { case (0): @@ -110,6 +110,9 @@ html_alloc(char *outopts) case (1): h->base_man = v; break; + case (2): + h->base_includes = v; + break; default: break; } |