diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-08-12 19:19:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-08-12 19:19:43 +0000 |
commit | aa217a398138fa711c87cd28abbab474a4cbb5f8 (patch) | |
tree | cdaecb13f23ba51fdb2c0a345be472382b184a8a /usr.bin | |
parent | 6bf4dc7bb0795ffa238f944340bc12e3bbf92811 (diff) |
The macro SCALE_HS_INIT() is always passed the result of strlen() or
an equivalent number as its argument, and strlen() measures the width
of a string in characters, not in basic units. No functional change
right now, but important for the upcoming scaling unit fixes.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/out.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/out.h b/usr.bin/mandoc/out.h index 197faf17ddc..424a6e0dd9f 100644 --- a/usr.bin/mandoc/out.h +++ b/usr.bin/mandoc/out.h @@ -1,4 +1,4 @@ -/* $Id: out.h,v 1.13 2014/04/20 16:44:44 schwarze Exp $ */ +/* $Id: out.h,v 1.14 2014/08/12 19:19:42 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -59,7 +59,7 @@ __BEGIN_DECLS while (/* CONSTCOND */ 0) #define SCALE_HS_INIT(p, v) \ - do { (p)->unit = SCALE_BU; \ + do { (p)->unit = SCALE_EN; \ (p)->scale = (v); } \ while (/* CONSTCOND */ 0) |