aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/out.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-12 19:28:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-12 19:28:16 +0000
commit36bf94232a5cacc4ff8dd748691cee8af98319d0 (patch)
treeb373cb519e67725fdef9eee44a0398b2daae79a4 /out.c
parent48a95d79260bbe4a81a5b05195c50a30aca56862 (diff)
downloadmandoc-36bf94232a5cacc4ff8dd748691cee8af98319d0.tar.gz
mandoc-36bf94232a5cacc4ff8dd748691cee8af98319d0.tar.zst
mandoc-36bf94232a5cacc4ff8dd748691cee8af98319d0.zip
In mdoc(7) and man(7), if a width is given as a bare number without
specifying a unit, the implied unit is 'n' (on the terminal, one character position; in PostScript, half of the current font size in points), not 'u' (roff output device basic unit). No functional change right now, but important for the upcoming scaling unit fixes.
Diffstat (limited to 'out.c')
-rw-r--r--out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/out.c b/out.c
index ad2e8320..783a04c5 100644
--- a/out.c
+++ b/out.c
@@ -1,4 +1,4 @@
-/* $Id: out.c,v 1.50 2014/08/10 23:54:41 schwarze Exp $ */
+/* $Id: out.c,v 1.51 2014/08/12 19:28:16 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -110,7 +110,7 @@ a2roffsu(const char *src, struct roffsu *dst, enum roffscale def)
case '\0':
if (SCALE_MAX == def)
return(0);
- unit = SCALE_BU;
+ unit = SCALE_EN;
break;
case 'u':
unit = SCALE_BU;