version 1.48, 2009/09/21 14:07:07 |
version 1.49, 2009/09/21 14:08:13 |
Line 2168 mdoc_sp_pre(MDOC_ARGS) |
|
Line 2168 mdoc_sp_pre(MDOC_ARGS) |
|
int len; |
int len; |
struct htmlpair tag; |
struct htmlpair tag; |
|
|
if (MDOC_sp == n->tok) |
switch (n->tok) { |
|
case (MDOC_sp): |
len = n->child ? atoi(n->child->string) : 1; |
len = n->child ? atoi(n->child->string) : 1; |
else |
break; |
|
case (MDOC_br): |
|
len = 0; |
|
break; |
|
default: |
len = 1; |
len = 1; |
|
break; |
|
} |
|
|
buffmt("height: %dem", len); |
buffmt("height: %dem", len); |
|
|
tag.key = ATTR_STYLE; |
tag.key = ATTR_STYLE; |
tag.val = buf; |
tag.val = buf; |
print_otag(h, TAG_DIV, 1, &tag); |
print_otag(h, TAG_DIV, 1, &tag); |