Author: AlbrechtS
Date: 2010-03-01 02:56:00 -0800 (Mon, 01 Mar 2010)
New Revision: 7182
Log:
Fixed double/quad "%" characters in PS output.


Modified:
   branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx

Modified: branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx        2010-03-01 
08:34:20 UTC (rev 7181)
+++ branches/branch-1.3-Fl_Printer/src/Fl_PS_Printer.cxx        2010-03-01 
10:56:00 UTC (rev 7182)
@@ -81,7 +81,7 @@
 //  Prolog string 
 
 static const char * prolog =
-"%%%%BeginProlog\n"
+"%%BeginProlog\n"
 "/L { /y2 exch def\n"
 "/x2 exch def\n"
 "/y1 exch def\n"
@@ -348,18 +348,18 @@
   this->set_current();
   page_format_ = format;
   
-  fputs("%%!PS-Adobe-3.0\n", output);
-  fputs("%%%%Creator: FLTK\n", output);
+  fputs("%!PS-Adobe-3.0\n", output);
+  fputs("%%Creator: FLTK\n", output);
   if(lang_level_>1)
     fprintf(output, "%%%%LanguageLevel: %i\n" , lang_level_);
   if((pages_ = pagecount))
     fprintf(output, "%%%%Pages: %i\n", pagecount);
   else
-    fputs("%%%%Pages: (atend)\n", output);
+    fputs("%%Pages: (atend)\n", output);
   fprintf(output, "%%%%BeginFeature: *PageSize %s\n", 
page_format_names[format] );
   fprintf(output, "<</PageSize[%d %d]>>setpagedevice\n", 
page_formats[format][0], page_formats[format][1] );
-  fputs("%%%%EndFeature\n", output);
-  fputs("%%%%EndComments\n", output);
+  fputs("%%EndFeature\n", output);
+  fputs("%%EndComments\n", output);
   fputs(prolog, output);
   if(lang_level_ >1)
     fputs(prolog_2, output);
@@ -375,7 +375,7 @@
   page_policy_=1;
   
   
-  fprintf(output, "%%%%EndProlog\n");
+  fputs("%%EndProlog\n",output);
   if(lang_level_>=2)
     fprintf(output,"<< /Policies << /Pagesize 1 >> >> setpagedevice\n");
   
@@ -1164,7 +1164,7 @@
     };
   } else
     fprintf(output, "GR\n restore\n");
-  fprintf(output, "%%%%EOF");
+  fputs("%%EOF",output);
   reset();
   fclose(output);
   

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to