=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.211 retrieving revision 1.213 diff -u -p -r1.211 -r1.213 --- mandoc/html.c 2017/05/12 17:58:21 1.211 +++ mandoc/html.c 2017/06/08 12:54:58 1.213 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.211 2017/05/12 17:58:21 schwarze Exp $ */ +/* $Id: html.c,v 1.213 2017/06/08 12:54:58 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017 Ingo Schwarze @@ -615,7 +615,7 @@ print_otag(struct html *h, enum htmltag tag, const cha a2width(arg2, su); if (*fmt == '+') { /* Increase to make even bold text fit. */ - su->scale *= 1.15; + su->scale *= 1.2; /* Add padding. */ su->scale += 3.0; fmt++; @@ -950,7 +950,10 @@ print_word(struct html *h, const char *cp) static void a2width(const char *p, struct roffsu *su) { - if (a2roffsu(p, su, SCALE_MAX) < 2) { + const char *end; + + end = a2roffsu(p, su, SCALE_MAX); + if (end == NULL || *end != '\0') { su->unit = SCALE_EN; su->scale = html_strlen(p); } else if (su->scale < 0.0)