summaryrefslogtreecommitdiffstatshomepage
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
commitf5e75ed5519b5b47bb34547ca91bbac10c5c5981 (patch)
tree78d8116839450f6448f282582941456eef5eee53 /html.c
parent3876e08da8b548350ddd22a8bc8e6fe8076ecd45 (diff)
downloadmandoc-f5e75ed5519b5b47bb34547ca91bbac10c5c5981.tar.gz
mandoc-f5e75ed5519b5b47bb34547ca91bbac10c5c5981.tar.zst
mandoc-f5e75ed5519b5b47bb34547ca91bbac10c5c5981.zip
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.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/html.c b/html.c
index 5e02de12..f61002dd 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.58 2009/10/07 12:35:23 kristaps Exp $ */
+/* $Id: html.c,v 1.59 2009/10/07 14:39:00 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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: