diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2014-08-13 20:34:29 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2014-08-13 20:34:29 +0000 |
commit | bafbe43e726d9ae496298a955d858961da9e8ba4 (patch) | |
tree | 4fe5bcd60931d948647fc4ccaaaf881845e51b33 /html.c | |
parent | 08b7f86267663883d71e98c502652ec334c232bc (diff) | |
download | mandoc-bafbe43e726d9ae496298a955d858961da9e8ba4.tar.gz mandoc-bafbe43e726d9ae496298a955d858961da9e8ba4.tar.zst mandoc-bafbe43e726d9ae496298a955d858961da9e8ba4.zip |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.161 2014/08/13 15:25:22 schwarze Exp $ */ +/* $Id: html.c,v 1.162 2014/08/13 20:34:29 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -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]); } |