version 1.93, 2014/04/20 16:46:04 |
version 1.94, 2014/04/20 20:18:12 |
|
|
#include <string.h> |
#include <string.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
|
#include "mandoc_aux.h" |
#include "out.h" |
#include "out.h" |
#include "html.h" |
#include "html.h" |
#include "man.h" |
#include "man.h" |
Line 300 a2width(const struct man_node *n, struct roffsu *su) |
|
Line 301 a2width(const struct man_node *n, struct roffsu *su) |
|
static void |
static void |
man_root_pre(MAN_ARGS) |
man_root_pre(MAN_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; |
|
|
b[0] = 0; |
b[0] = 0; |
if (man->vol) |
if (man->vol) |
Line 310 man_root_pre(MAN_ARGS) |
|
Line 312 man_root_pre(MAN_ARGS) |
|
|
|
assert(man->title); |
assert(man->title); |
assert(man->msec); |
assert(man->msec); |
snprintf(title, BUFSIZ - 1, "%s(%s)", man->title, man->msec); |
mandoc_asprintf(&title, "%s(%s)", man->title, man->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 341 man_root_pre(MAN_ARGS) |
|
Line 343 man_root_pre(MAN_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); |
} |
} |
|
|
static void |
static void |