version 1.94, 2014/04/20 20:18:12 |
version 1.97, 2014/08/10 23:54:41 |
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
#ifdef HAVE_CONFIG_H |
|
#include "config.h" |
#include "config.h" |
#endif |
|
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
Line 301 a2width(const struct man_node *n, struct roffsu *su) |
|
Line 299 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 *title; |
char *title; |
|
|
b[0] = 0; |
|
if (man->vol) |
|
(void)strlcat(b, man->vol, BUFSIZ); |
|
|
|
assert(man->title); |
assert(man->title); |
assert(man->msec); |
assert(man->msec); |
mandoc_asprintf(&title, "%s(%s)", man->title, man->msec); |
mandoc_asprintf(&title, "%s(%s)", man->title, man->msec); |
Line 335 man_root_pre(MAN_ARGS) |
|
Line 328 man_root_pre(MAN_ARGS) |
|
PAIR_CLASS_INIT(&tag[0], "head-vol"); |
PAIR_CLASS_INIT(&tag[0], "head-vol"); |
PAIR_INIT(&tag[1], ATTR_ALIGN, "center"); |
PAIR_INIT(&tag[1], ATTR_ALIGN, "center"); |
print_otag(h, TAG_TD, 2, tag); |
print_otag(h, TAG_TD, 2, tag); |
print_text(h, b); |
if (NULL != man->vol) |
|
print_text(h, man->vol); |
print_stagq(h, tt); |
print_stagq(h, tt); |
|
|
PAIR_CLASS_INIT(&tag[0], "head-rtitle"); |
PAIR_CLASS_INIT(&tag[0], "head-rtitle"); |
Line 392 man_br_pre(MAN_ARGS) |
|
Line 386 man_br_pre(MAN_ARGS) |
|
if ( ! a2roffsu(n->string, &su, SCALE_VS)) |
if ( ! a2roffsu(n->string, &su, SCALE_VS)) |
SCALE_VS_INIT(&su, atoi(n->string)); |
SCALE_VS_INIT(&su, atoi(n->string)); |
} else |
} else |
su.scale = 0; |
su.scale = 0.0; |
|
|
bufinit(h); |
bufinit(h); |
bufcat_su(h, "height", &su); |
bufcat_su(h, "height", &su); |