diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-06-27 11:49:38 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-06-27 11:49:38 +0000 |
commit | 20793303cd975d66c726b5630e22edcc60234e9d (patch) | |
tree | d1acf284e452b3745f9e88728239c8d9d69dcc55 /usr.bin/mandoc | |
parent | fbc6f123930a792090f559e2758ef76d27d2ff7b (diff) |
sync to 1.7.20: handle [01-9]+m -width specifiers
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index 5c627bd48cd..1a34a10c0ed 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.14 2009/06/27 10:59:07 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.15 2009/06/27 11:49:37 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -540,7 +540,8 @@ arg_width(const struct mdoc_argv *arg, int pos) break; if (i == len - 1) { - if ('n' == arg->value[pos][len - 1]) { + if ('n' == arg->value[pos][len - 1] || + 'm' == arg->value[pos][len - 1]) { v = (size_t)atoi(arg->value[pos]); return(v); } |