version 1.188, 2014/04/20 16:46:05 |
version 1.189, 2014/04/20 20:18:12 |
|
|
#include <unistd.h> |
#include <unistd.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
|
#include "mandoc_aux.h" |
#include "out.h" |
#include "out.h" |
#include "html.h" |
#include "html.h" |
#include "mdoc.h" |
#include "mdoc.h" |
Line 514 mdoc_root_post(MDOC_ARGS) |
|
Line 515 mdoc_root_post(MDOC_ARGS) |
|
static int |
static int |
mdoc_root_pre(MDOC_ARGS) |
mdoc_root_pre(MDOC_ARGS) |
{ |
{ |
|
char b[BUFSIZ]; |
struct htmlpair tag[3]; |
struct htmlpair tag[3]; |
struct tag *t, *tt; |
struct tag *t, *tt; |
char b[BUFSIZ], title[BUFSIZ]; |
char *title; |
|
|
strlcpy(b, meta->vol, BUFSIZ); |
strlcpy(b, meta->vol, BUFSIZ); |
|
|
Line 526 mdoc_root_pre(MDOC_ARGS) |
|
Line 528 mdoc_root_pre(MDOC_ARGS) |
|
strlcat(b, ")", BUFSIZ); |
strlcat(b, ")", BUFSIZ); |
} |
} |
|
|
snprintf(title, BUFSIZ - 1, "%s(%s)", meta->title, meta->msec); |
mandoc_asprintf(&title, "%s(%s)", meta->title, meta->msec); |
|
|
PAIR_SUMMARY_INIT(&tag[0], "Document Header"); |
PAIR_SUMMARY_INIT(&tag[0], "Document Header"); |
PAIR_CLASS_INIT(&tag[1], "head"); |
PAIR_CLASS_INIT(&tag[1], "head"); |
Line 557 mdoc_root_pre(MDOC_ARGS) |
|
Line 559 mdoc_root_pre(MDOC_ARGS) |
|
print_otag(h, TAG_TD, 2, tag); |
print_otag(h, TAG_TD, 2, tag); |
print_text(h, title); |
print_text(h, title); |
print_tagq(h, t); |
print_tagq(h, t); |
|
|
|
free(title); |
return(1); |
return(1); |
} |
} |
|
|