summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-25 19:50:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-25 19:50:23 +0000
commit730c5a1572228d1c4a1ef49a9748be04a119c1e8 (patch)
treee343184e297e9f8bc244f46377645cfb9148b125 /html.c
parent955a3b0eddc8e1d4b67024b12e652eac84dbcdec (diff)
downloadmandoc-730c5a1572228d1c4a1ef49a9748be04a119c1e8.tar.gz
Remove "pt" from struct roffsu, as CSS (the only reason it was there) is
unclear about which units accept floats/integers, which leads me to assume that it handles either and rounds as appropriate.
Diffstat (limited to 'html.c')
-rw-r--r--html.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/html.c b/html.c
index 312b5ead..bdf99e0c 100644
--- a/html.c
+++ b/html.c
@@ -718,11 +718,11 @@ bufcat_su(struct html *h, const char *p, const struct roffsu *su)
break;
}
- if (su->pt)
- buffmt(h, "%s: %f%s;", p, v, u);
- else
- /* LINTED */
- buffmt(h, "%s: %d%s;", p, (int)v, u);
+ /*
+ * XXX: the CSS spec isn't clear as to which types accept
+ * integer or real numbers, so we just make them all decimals.
+ */
+ buffmt(h, "%s: %.2f%s;", p, v, u);
}