aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-04 02:05:42 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-04 02:05:42 +0000
commit47e7075a5f140929a14ebcfba234c319f9e9a675 (patch)
tree1bbda1d6e9ac526210babe3c939b65148b5bbe41 /man_html.c
parent693b9184ecc222c08b151134cb6e4e9a181fdd51 (diff)
downloadmandoc-47e7075a5f140929a14ebcfba234c319f9e9a675.tar.gz
mandoc-47e7075a5f140929a14ebcfba234c319f9e9a675.tar.zst
mandoc-47e7075a5f140929a14ebcfba234c319f9e9a675.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 'man_html.c')
-rw-r--r--man_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index e9f93e73..1455e1e4 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.106 2014/12/02 10:08:06 schwarze Exp $ */
+/* $Id: man_html.c,v 1.107 2014/12/04 02:05:42 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -282,7 +282,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);