summaryrefslogtreecommitdiffstats
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
commit358f63e2e210f79c124f804e3e0b9d0f44f4c61d (patch)
tree3c1d18d00e8559d6502fa26ea168eee4e36d39b1
parentfee7d438fca8e6b0fb1769947f90f198a69ad3f0 (diff)
downloadmandoc-358f63e2e210f79c124f804e3e0b9d0f44f4c61d.tar.gz
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.
-rw-r--r--out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/out.c b/out.c
index 601b07de..cd33710e 100644
--- a/out.c
+++ b/out.c
@@ -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;