aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/out.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-12 19:28:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-12 19:28:03 +0000
commit48a95d79260bbe4a81a5b05195c50a30aca56862 (patch)
treea133411a72ab1252d29ce23abf26348022088002 /out.h
parent823aabe9b4e791e407f7e859b405545676d7c16f (diff)
downloadmandoc-48a95d79260bbe4a81a5b05195c50a30aca56862.tar.gz
mandoc-48a95d79260bbe4a81a5b05195c50a30aca56862.tar.zst
mandoc-48a95d79260bbe4a81a5b05195c50a30aca56862.zip
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 'out.h')
-rw-r--r--out.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/out.h b/out.h
index 514db3fe..a1133ede 100644
--- a/out.h
+++ b/out.h
@@ -1,4 +1,4 @@
-/* $Id: out.h,v 1.22 2014/04/20 16:46:05 schwarze Exp $ */
+/* $Id: out.h,v 1.23 2014/08/12 19:28:03 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)