summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/man_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-12-04 02:05:16 +0000
committerschwarze <schwarze@openbsd.org>2014-12-04 02:05:16 +0000
commit2bf930a44fefc6c3e8930e0fea4c2e5e3ddae70d (patch)
treebb9d22a0362cc548351fc0222ca5d5f962ba5a4a /usr.bin/mandoc/man_html.c
parentsplit the word ops into int and longs so things that care a lot (diff)
downloadwireguard-openbsd-2bf930a44fefc6c3e8930e0fea4c2e5e3ddae70d.tar.xz
wireguard-openbsd-2bf930a44fefc6c3e8930e0fea4c2e5e3ddae70d.zip
fix handling of roff requests having a default scale other than "n",
in particular .sp which uses "v", when the scale is not specified; cures groff-mandoc differences in about a dozen Xenocara manuals
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r--usr.bin/mandoc/man_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c
index cde34a999c3..facecf9b7af 100644
--- a/usr.bin/mandoc/man_html.c
+++ b/usr.bin/mandoc/man_html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: man_html.c,v 1.59 2014/12/02 10:07:17 schwarze Exp $ */
+/* $OpenBSD: man_html.c,v 1.60 2014/12/04 02:05:16 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -280,7 +280,7 @@ a2width(const struct man_node *n, struct roffsu *su)
if (MAN_TEXT != n->type)
return(0);
- if (a2roffsu(n->string, su, SCALE_BU))
+ if (a2roffsu(n->string, su, SCALE_EN))
return(1);
return(0);