diff options
-rw-r--r-- | html.c | 2 | ||||
-rw-r--r-- | mdoc_html.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -591,6 +591,8 @@ print_otag(struct html *h, enum htmltag tag, const char *fmt, ...) break; su = &mysu; a2width(arg2, su); + /* Increase width to make even bold text fit. */ + su->scale *= 1.1; if (fmt[-1] == 'W') su->scale *= -1.0; break; diff --git a/mdoc_html.c b/mdoc_html.c index b628bb56..3a0b774b 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -628,7 +628,8 @@ mdoc_nm_pre(MDOC_ARGS) len = html_strlen(meta->name); t = print_otag(h, TAG_COLGROUP, ""); - print_otag(h, TAG_COL, "shw", len); + /* Increase width to make even bold text fit. */ + print_otag(h, TAG_COL, "shw", len + 2); print_otag(h, TAG_COL, ""); print_tagq(h, t); print_otag(h, TAG_TR, ""); |