diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-04 11:04:46 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-04 11:04:46 +0000 |
commit | cbf184e6664995fe2c56d926373afb4c12a228e5 (patch) | |
tree | 98f1168fd58bd4cf18a520b6c69e35317698ca58 | |
parent | 03c458b5c53d8d56458c7bf11df1e97c40df8036 (diff) | |
download | mandoc-cbf184e6664995fe2c56d926373afb4c12a228e5.tar.gz |
Fixed -offset left (schwarze@openbsd.org).
Fixed bogus setting (instead of increment) of offsets.
-rw-r--r-- | mdoc_term.c | 4 |
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; } |