=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.159 retrieving revision 1.162 diff -u -p -r1.159 -r1.162 --- mandoc/html.c 2014/07/23 15:00:08 1.159 +++ mandoc/html.c 2014/08/13 20:34:29 1.162 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.159 2014/07/23 15:00:08 schwarze Exp $ */ +/* $Id: html.c,v 1.162 2014/08/13 20:34:29 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze @@ -15,9 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -76,6 +74,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"i", 0 }, /* TAG_I */ {"code", 0 }, /* TAG_CODE */ {"small", 0 }, /* TAG_SMALL */ + {"em", 0 }, /* TAG_EM */ }; static const char *const htmlattrs[ATTR_MAX] = { @@ -761,6 +760,8 @@ bufcat_su(struct html *h, const char *p, const struct v = su->scale; if (SCALE_MM == su->unit && 0.0 == (v /= 100.0)) v = 1.0; + else if (SCALE_BU == su->unit) + v /= 24.0; bufcat_fmt(h, "%s: %.2f%s;", p, v, roffscales[su->unit]); }