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 | ce8ab0a1bb72b1a1bf7fbc11edfcad682e7d1619 (patch) | |
tree | f9109296dd1bfc80d2febbc132f5a98612a5283a /man_term.c | |
parent | 561cc96be291e4e8b9c01bd646f9404b4e1845ea (diff) | |
download | mandoc-ce8ab0a1bb72b1a1bf7fbc11edfcad682e7d1619.tar.gz |
even if the second argument to .IP is invalid, don't print it
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |