diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-21 13:26:30 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-21 13:26:30 +0000 |
commit | 13ccee516125794901c44d41d8f589bddbae5aa7 (patch) | |
tree | 7644a2abd2f81a24bcd4a9309c10011be057b3ed | |
parent | dae89805fb05da280783cd70cec797acecfd8e02 (diff) | |
download | mandoc-13ccee516125794901c44d41d8f589bddbae5aa7.tar.gz |
Handling -width="" in lists.
-rw-r--r-- | term.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -320,8 +320,8 @@ arg_width(const struct mdoc_argv *arg, int pos) if (0 == strcmp(arg->value[pos], "indent-two")) return(INDENT * 2); - len = (int)strlen(arg->value[pos]); - assert(len > 0); + if (0 == (len = (int)strlen(arg->value[pos]))) + return(0); for (i = 0; i < len - 1; i++) if ( ! isdigit((u_char)arg->value[pos][i])) |