=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/term_ps.c,v retrieving revision 1.22 retrieving revision 1.23 diff -c -r1.22 -r1.23 *** src/usr.bin/mandoc/term_ps.c 2014/03/30 19:47:32 1.22 --- src/usr.bin/mandoc/term_ps.c 2014/03/30 21:27:59 1.23 *************** *** 1,4 **** ! /* $Id: term_ps.c,v 1.22 2014/03/30 19:47:32 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze --- 1,4 ---- ! /* $Id: term_ps.c,v 1.23 2014/03/30 21:27:59 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze *************** *** 99,105 **** static void ps_printf(struct termp *, const char *, ...); static void ps_putchar(struct termp *, char); static void ps_setfont(struct termp *, enum termfont); ! static void ps_setwidth(struct termp *, size_t); static struct termp *pspdf_alloc(char *); static void pdf_obj(struct termp *, size_t); --- 99,105 ---- static void ps_printf(struct termp *, const char *, ...); static void ps_putchar(struct termp *, char); static void ps_setfont(struct termp *, enum termfont); ! static void ps_setwidth(struct termp *, int, size_t); static struct termp *pspdf_alloc(char *); static void pdf_obj(struct termp *, size_t); *************** *** 529,540 **** static void ! ps_setwidth(struct termp *p, size_t width) { size_t lastwidth; lastwidth = p->ps->width; ! p->ps->width = width ? width : p->ps->lastwidth; p->ps->lastwidth = lastwidth; } --- 529,545 ---- static void ! ps_setwidth(struct termp *p, int iop, size_t width) { size_t lastwidth; lastwidth = p->ps->width; ! if (0 < iop) ! p->ps->width += width; ! else if (0 > iop) ! p->ps->width -= width; ! else ! p->ps->width = width ? width : p->ps->lastwidth; p->ps->lastwidth = lastwidth; }