aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-23 10:09:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-23 10:09:44 +0000
commitff9ffdaa32c8d8843620079281b5c445b548babc (patch)
tree9d6c696b3ded064ba481baf93a7cebbc40f9eae3 /mdoc_man.c
parentb746353a05b8aa9d139a3058dfc846eb7c978997 (diff)
downloadmandoc-ff9ffdaa32c8d8843620079281b5c445b548babc.tar.gz
mandoc-ff9ffdaa32c8d8843620079281b5c445b548babc.tar.zst
mandoc-ff9ffdaa32c8d8843620079281b5c445b548babc.zip
fix typo in previous
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index daa5a764..af459265 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_man.c,v 1.78 2014/12/23 09:31:46 schwarze Exp $ */
+/* $Id: mdoc_man.c,v 1.79 2014/12/23 10:09:44 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -434,7 +434,7 @@ print_offs(const char *v, int keywords)
sz = 6;
else if (keywords && !strcmp(v, "indent-two"))
sz = 12;
- else if (a2roffsu(v, &su, SCALE_EN) < 2) {
+ else if (a2roffsu(v, &su, SCALE_EN) > 1) {
if (SCALE_EN == su.unit)
sz = su.scale;
else {
@@ -481,7 +481,7 @@ print_width(const char *v, const struct mdoc_node *child, size_t defsz)
/* Convert v into a number (of characters). */
if (NULL == v)
sz = defsz;
- else if (a2roffsu(v, &su, SCALE_MAX) < 2) {
+ else if (a2roffsu(v, &su, SCALE_MAX) > 1) {
if (SCALE_EN == su.unit)
sz = su.scale;
else {