diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-12 19:28:03 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-12 19:28:03 +0000 |
commit | 48a95d79260bbe4a81a5b05195c50a30aca56862 (patch) | |
tree | a133411a72ab1252d29ce23abf26348022088002 /out.h | |
parent | 823aabe9b4e791e407f7e859b405545676d7c16f (diff) | |
download | mandoc-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |