=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.160 retrieving revision 1.162 diff -u -p -r1.160 -r1.162 --- mandoc/html.c 2014/08/10 23:54:41 1.160 +++ mandoc/html.c 2014/08/13 20:34:29 1.162 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.160 2014/08/10 23:54:41 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 @@ -74,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] = { @@ -759,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]); }