From 730c5a1572228d1c4a1ef49a9748be04a119c1e8 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 25 Jun 2010 19:50:23 +0000 Subject: 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. --- html.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html.c') 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); } -- cgit