From fafa96b83f3a3632a8329893c736fae8bdc93778 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 21 Mar 2009 13:26:30 +0000 Subject: Handling -width="" in lists. --- term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/term.c b/term.c index beb13196..18067505 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.65 2009/03/21 13:09:29 kristaps Exp $ */ +/* $Id: term.c,v 1.66 2009/03/21 13:26:30 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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])) -- cgit v1.2.3-56-ge451