diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-23 08:15:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-23 08:15:53 +0000 |
commit | 5d42210e3b9f8220e4026cbeb581e5953e7bd23d (patch) | |
tree | aca39d8743a51cc06417c749ca50da6118fe9007 | |
parent | edd3f03c572dea751a39384a378cee53fa006b40 (diff) | |
download | mandoc-5d42210e3b9f8220e4026cbeb581e5953e7bd23d.tar.gz mandoc-5d42210e3b9f8220e4026cbeb581e5953e7bd23d.tar.zst mandoc-5d42210e3b9f8220e4026cbeb581e5953e7bd23d.zip |
even if the second argument to .IP is invalid, don't print it
-rw-r--r-- | man_term.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.160 2014/12/23 01:57:35 schwarze Exp $ */ +/* $Id: man_term.c,v 1.161 2014/12/23 08:15:53 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -633,11 +633,10 @@ pre_IP(DECL_ARGS) p->offset = mt->offset; p->rmargin = mt->offset + len; - if (ival < 0) - break; /* Set the saved left-margin. */ - mt->lmargin[mt->lmargincur] = (size_t)ival; + if (ival >= 0) + mt->lmargin[mt->lmargincur] = (size_t)ival; savelit = MANT_LITERAL & mt->fl; mt->fl &= ~MANT_LITERAL; |