aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-23 08:15:53 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-23 08:15:53 +0000
commit5d42210e3b9f8220e4026cbeb581e5953e7bd23d (patch)
treeaca39d8743a51cc06417c749ca50da6118fe9007 /man_term.c
parentedd3f03c572dea751a39384a378cee53fa006b40 (diff)
downloadmandoc-5d42210e3b9f8220e4026cbeb581e5953e7bd23d.tar.gz
mandoc-5d42210e3b9f8220e4026cbeb581e5953e7bd23d.tar.zst
mandoc-5d42210e3b9f8220e4026cbeb581e5953e7bd23d.zip
even if the second argument to .IP is invalid, don't print it
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/man_term.c b/man_term.c
index f3a87340..5c09199a 100644
--- a/man_term.c
+++ b/man_term.c
@@ -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;