-/* $Id: mdoc_html.c,v 1.10 2009/09/24 23:54:43 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.12 2009/09/25 13:00:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
tt = print_otag(h, TAG_TR, 0, NULL);
tag[0].key = ATTR_STYLE;
- tag[0].val = "width: 33%;";
+ tag[0].val = "width: 10%;";
print_otag(h, TAG_TD, 1, tag);
print_text(h, title);
print_stagq(h, tt);
tag[0].key = ATTR_STYLE;
- tag[0].val = "width: 33%; text-align: center;";
+ tag[0].val = "width: 80%; white-space: nowrap; text-align: center;";
print_otag(h, TAG_TD, 1, tag);
print_text(h, b);
print_stagq(h, tt);
tag[0].key = ATTR_STYLE;
- tag[0].val = "width: 33%; text-align: right;";
+ tag[0].val = "width: 10%; text-align: right;";
print_otag(h, TAG_TD, 1, tag);
print_text(h, title);
print_tagq(h, t);
assert(n->child->string);
sp = n->child->string;
- while ((ep = strchr(sp, ' '))) {
+ while (NULL != (ep = strchr(sp, ' '))) {
sz = MIN((int)(ep - sp), BUFSIZ - 1);
(void)memcpy(nbuf, sp, (size_t)sz);
nbuf[sz] = '\0';