summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-07 14:39:00 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-07 14:39:00 +0000
commit64e701f6c5f80420220bf0e2237124d23f0080f9 (patch)
tree4a1b1954bf46ba9421ac3779d9fd6064bd78d4c4 /html.c
parentc5cc5b497aa0c24179d438ed599588024e731d31 (diff)
downloadmandoc-64e701f6c5f80420220bf0e2237124d23f0080f9.tar.gz
Made default string units (-Thtml -mdoc) to use `m' and not `n' scaling (better more than less).
Fixed -column widths for -Thtml -mdoc. Fixed left-hand margin padding for -Thtml -mdoc.
Diffstat (limited to 'html.c')
-rw-r--r--html.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/html.c b/html.c
index 6e39fc20..ad90fad7 100644
--- a/html.c
+++ b/html.c
@@ -614,14 +614,21 @@ bufcat_su(struct html *h, const char *p, const struct roffsu *su)
case (SCALE_PT):
u = "pt";
break;
+ case (SCALE_EM):
+ u = "em";
+ break;
case (SCALE_MM):
if (0 == (v /= 100))
v = 1;
u = "em";
break;
+ case (SCALE_EN):
+ u = "ex";
+ break;
+ case (SCALE_BU):
+ u = "ex";
+ break;
case (SCALE_VS):
- /* FALLTHROUGH */
- case (SCALE_EM):
u = "em";
break;
default: