summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-05 08:46:09 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-05 08:46:09 +0000
commitd7c1e9e05297d23df3e0c921450c0752b4a19730 (patch)
tree76d2b791faf33b9a044f2987296f4a41270dac6d
parent22634796e5c7442418dc502cd33b66410663f61a (diff)
downloadmandoc-d7c1e9e05297d23df3e0c921450c0752b4a19730.tar.gz
Suppress duplicate "Page: 1 1" -Tps printing and instead relay on
PS_NEWPAGE to do the job for us. Noted by Dillo.
-rw-r--r--term_ps.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/term_ps.c b/term_ps.c
index ff5fa130..d666e0e1 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -642,14 +642,10 @@ ps_begin(struct termp *p)
printf(" %s", fonts[i].name);
printf("\n%%%%EndComments\n");
- printf("%%%%Page: %zu %zu\n",
- p->engine.ps.pages + 1,
- p->engine.ps.pages + 1);
-
- ps_setfont(p, TERMFONT_NONE);
p->engine.ps.pscol = p->engine.ps.left;
p->engine.ps.psrow = p->engine.ps.top;
p->engine.ps.flags |= PS_NEWPAGE;
+ ps_setfont(p, TERMFONT_NONE);
}