version 1.9, 2009/10/09 07:10:37 |
version 1.11, 2009/10/18 19:03:36 |
|
|
#include "out.h" |
#include "out.h" |
#include "html.h" |
#include "html.h" |
#include "man.h" |
#include "man.h" |
|
#include "main.h" |
|
|
/* TODO: preserve ident widths. */ |
/* TODO: preserve ident widths. */ |
|
|
Line 221 a2width(const struct man_node *n, struct roffsu *su) |
|
Line 222 a2width(const struct man_node *n, struct roffsu *su) |
|
|
|
if (MAN_TEXT != n->type) |
if (MAN_TEXT != n->type) |
return(0); |
return(0); |
if (a2roffsu(n->string, su)) |
if (a2roffsu(n->string, su, SCALE_BU)) |
return(1); |
return(1); |
|
|
return(0); |
return(0); |
Line 324 man_br_pre(MAN_ARGS) |
|
Line 325 man_br_pre(MAN_ARGS) |
|
|
|
SCALE_VS_INIT(&su, 1); |
SCALE_VS_INIT(&su, 1); |
|
|
if (MAN_sp == n->tok) { |
if (MAN_sp == n->tok && n->child) |
su.scale = 1; |
a2roffsu(n->child->string, &su, SCALE_VS); |
if (n->child) |
else if (MAN_br == n->tok) |
a2roffsu(n->child->string, &su); |
|
} else if (MAN_br == n->tok) |
|
su.scale = 0; |
su.scale = 0; |
|
|
bufcat_su(h, "height", &su); |
bufcat_su(h, "height", &su); |