]>
Commit | Line | Data |
---|---|---|
6b314170 KK |
1 | --- cups-1.2.7/filter/pstops.c.orig 2006-11-14 17:54:50.000000000 +0100 |
2 | +++ cups-1.2.7/filter/pstops.c 2006-12-18 02:33:43.540429154 +0100 | |
3 | @@ -909,23 +909,26 @@ | |
4 | * for the JCL options... | |
5 | */ | |
6 | ||
7 | - if (!doc->saw_eof) | |
8 | - puts("%%EOF"); | |
9 | - | |
10 | - if (doc->emit_jcl) | |
11 | + if (number) | |
12 | { | |
13 | - if (ppd && ppd->jcl_end) | |
14 | - ppdEmitJCLEnd(ppd, stdout); | |
15 | - else | |
16 | - putchar(0x04); | |
17 | + if (!doc->saw_eof) | |
18 | + puts("%%EOF"); | |
19 | ||
20 | - ppdEmitJCL(ppd, stdout, doc->job_id, doc->user, doc->title); | |
21 | - } | |
22 | + if (doc->emit_jcl) | |
23 | + { | |
24 | + if (ppd && ppd->jcl_end) | |
25 | + ppdEmitJCLEnd(ppd, stdout); | |
26 | + else | |
27 | + putchar(0x04); | |
28 | ||
29 | - puts("%!PS-Adobe-3.0"); | |
30 | - puts("%%Pages: (atend)"); | |
31 | - puts("%%BoundingBox: (atend)"); | |
32 | - puts("%%EndComments"); | |
33 | + ppdEmitJCL(ppd, stdout, doc->job_id, doc->user, doc->title); | |
34 | + } | |
35 | + | |
36 | + puts("%!PS-Adobe-3.0"); | |
37 | + puts("%%Pages: (atend)"); | |
38 | + puts("%%BoundingBox: (atend)"); | |
39 | + puts("%%EndComments"); | |
40 | + } | |
41 | ||
42 | /* | |
43 | * Then copy all of the pages... |