[tex-live] dvips -K1 removes a newline where it shouldn't

Akira Kakuto kakuto at fuk.kindai.ac.jp
Sat Jan 2 01:07:19 CET 2010


Hi,

T S wrote:
> when I run "dvips -K1" from current texlive-2009 it removes a newline
> after %%BeginFont: command, e.g.  a figure which has
> 
> %%BeginFont: MC1_ArialBold
> 12 dict begin
> /FontInfo 8 dict dup begin
> ...
> 
> will be included in the dvips -K1 generated postscript as
> 
> %%BeginFont: MC1_ArialBold12 dict begin
> /FontInfo 8 dict dup begin
> ...

Many thanks for your report.
The following patch solves the problem.

Best regards,
Akira


--- output.c.orig	Tue Nov 10 19:29:34 2009
+++ output.c	Sat Jan 02 09:01:44 2010
@@ -310,8 +310,10 @@
                      char *p = possibleDSCLine ;
                      *dscLinePointer = 0 ;
                      *dscLineEnd = 0 ;
-                     if (scanForEnd == 0 && removecomments)
+                     if (scanForEnd == 0 && removecomments) {
                         (void)fputs(possibleDSCLine, bitfile) ;
+                        (void)putc('\n', bitfile) ;
+                     }
 
                      if (strncmp(possibleDSCLine, "%%BeginFont:", 12) == 0) {
 



More information about the tex-live mailing list