summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-04 11:04:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-04 11:04:46 +0000
commitcbf184e6664995fe2c56d926373afb4c12a228e5 (patch)
tree98f1168fd58bd4cf18a520b6c69e35317698ca58 /mdoc_term.c
parent03c458b5c53d8d56458c7bf11df1e97c40df8036 (diff)
downloadmandoc-cbf184e6664995fe2c56d926373afb4c12a228e5.tar.gz
Fixed -offset left (schwarze@openbsd.org).
Fixed bogus setting (instead of increment) of offsets.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index cfb6f098..9b6b9fd9 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -604,7 +604,7 @@ arg_offset(const struct mdoc_argv *arg)
assert(*arg->value);
if (0 == strcmp(*arg->value, "left"))
- return(INDENT - 1);
+ return(0);
if (0 == strcmp(*arg->value, "indent"))
return(INDENT + 1);
if (0 == strcmp(*arg->value, "indent-two"))
@@ -761,7 +761,7 @@ termp_it_pre(DECL_ARGS)
if (vals[0] >= 0)
width = arg_width(&bl->args->argv[vals[0]], 0);
if (vals[1] >= 0)
- offset = arg_offset(&bl->args->argv[vals[1]]);
+ offset += arg_offset(&bl->args->argv[vals[1]]);
break;
}