summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2014-08-13 20:34:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2014-08-13 20:34:29 +0000
commitc723dfca801f93364fefe102f1daa270ad740d4f (patch)
tree1dcdbec09fc85e3b795b25697473b85609220b81 /html.c
parentad2b1e6bad9b1abd3a86026b76e5fb100aaca2e4 (diff)
downloadmandoc-c723dfca801f93364fefe102f1daa270ad740d4f.tar.gz
Begin cleaning up scaling units.
Start with the horizontal terminal specifiers, making sure that they match up with troff. Then move on to PS, PDF, and HTML, noting that we stick to the terminal default width for "u". Lastly, fix some completely-wrong documentation and note that we diverge from troff w/r/t "u".
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/html.c b/html.c
index b41a7f61..d5021860 100644
--- a/html.c
+++ b/html.c
@@ -760,6 +760,8 @@ bufcat_su(struct html *h, const char *p, const struct roffsu *su)
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]);
}