summaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 10:43:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-10 10:43:57 +0000
commit7d393d45bdff6d0d4a4742e71d0c6997150410be (patch)
tree9998584b5f49d7853deab8b04a9bb7e7e62f3613 /html.c
parent643d4d3e12bab073d256761997a695832f403658 (diff)
downloadmandoc-7d393d45bdff6d0d4a4742e71d0c6997150410be.tar.gz
mandoc-7d393d45bdff6d0d4a4742e71d0c6997150410be.tar.zst
mandoc-7d393d45bdff6d0d4a4742e71d0c6997150410be.zip
*** empty log message ***
Diffstat (limited to 'html.c')
-rw-r--r--html.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/html.c b/html.c
index caf6f473..132f4d29 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.20 2008/12/10 00:58:15 kristaps Exp $ */
+/* $Id: html.c,v 1.21 2008/12/10 10:43:57 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -72,7 +72,7 @@ static int html_begin(struct md_mbuf *,
const struct md_args *,
const struct tm *,
const char *, const char *,
- enum roffmsec, const char *);
+ enum roffmsec, enum roffvol);
static int html_printargs(struct md_mbuf *, int,
const char *, const int *,
const char **, size_t *);
@@ -382,15 +382,23 @@ html_aputln(struct md_mbuf *mbuf, enum ml_scope scope, int i,
static int
html_begin(struct md_mbuf *mbuf, const struct md_args *args,
const struct tm *tm, const char *os,
- const char *name, enum roffmsec msec, const char *vol)
+ const char *name, enum roffmsec msec, enum roffvol vol)
{
struct html_pair attr[4];
- char ts[32];
+ char ts[32], title[64];
int i;
(void)snprintf(ts, sizeof(ts), "%s(%s)",
name, roff_msecname(msec));
+ (void)snprintf(ts, sizeof(ts), "%s",
+ name, roff_volname(vol));
+
+ if (vol >= ROFF_ARCH_START) {
+
+ }
+
+
i = 0;
if ( ! html_typeput(mbuf, HTML_TYPE_4_01_STRICT, NULL))