diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2010-09-27 23:03:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2010-09-27 23:03:44 +0000 |
commit | ddb8c20e76ca162b2fbfbf7131f5b2a6ee36eea5 (patch) | |
tree | 850f634b9ed52a3a3e9dcf091903b7dd2b7a3055 /term_ps.c | |
parent | 135b549aba3a1fea5a49906e6abbac96e0683569 (diff) | |
download | mandoc-ddb8c20e76ca162b2fbfbf7131f5b2a6ee36eea5.tar.gz mandoc-ddb8c20e76ca162b2fbfbf7131f5b2a6ee36eea5.tar.zst mandoc-ddb8c20e76ca162b2fbfbf7131f5b2a6ee36eea5.zip |
Merge from OpenBSD right after 1.10.6; now back to full sync.
* mdoc.c: blank lines outside literal mode are more similar to .sp than .Pp
* backslashes do not terminate macros; partial revert of mdoc.c 1.164;
the intention of that commit is fully achieved in roff.c
* mdoc_term.c: no need to list the same prototype twice
* mdoc_validate.c: drop .Pp before .sp just like .Pp before .Pp
* fix off-by-one found by jsg@ with parfait, OpenBSD term_ps.c 1.12
ok kristaps@
Diffstat (limited to 'term_ps.c')
-rw-r--r-- | term_ps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: term_ps.c,v 1.44 2010/09/04 20:18:53 kristaps Exp $ */ +/* $Id: term_ps.c,v 1.45 2010/09/27 23:03:44 schwarze Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -908,7 +908,7 @@ ps_pletter(struct termp *p, int c) f = (int)p->engine.ps.lastf; - if (c <= 32 || (c - 32 > MAXCHAR)) { + if (c <= 32 || (c - 32 >= MAXCHAR)) { ps_putchar(p, ' '); p->engine.ps.pscol += (size_t)fonts[f].gly[0].wx; return; |