From 2c8407d1d02802e3c8bd38cf02d3e7cc8252a498 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 3 Oct 2009 15:26:26 +0000 Subject: 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). --- html.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index ae7c50b8..45b40be8 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.53 2009/10/03 15:08:09 kristaps Exp $ */ +/* $Id: html.c,v 1.54 2009/10/03 15:26:26 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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; } -- cgit v1.2.3-56-ge451