[BACK]Return to term_ps.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/term_ps.c between version 1.29 and 1.30

version 1.29, 2010/07/04 19:42:25 version 1.30, 2010/07/04 19:57:26
Line 580  ps_end(struct termp *p)
Line 580  ps_end(struct termp *p)
          * well as just one.           * well as just one.
          */           */
   
         assert(0 == p->engine.ps.flags);          if ( ! (PS_NEWPAGE & p->engine.ps.flags)) {
         assert('\0' == p->engine.ps.last);                  assert(0 == p->engine.ps.flags);
         assert(p->engine.ps.psmarg && p->engine.ps.psmarg[0]);                  assert('\0' == p->engine.ps.last);
         printf("%s", p->engine.ps.psmarg);                  assert(p->engine.ps.psmarg && p->engine.ps.psmarg[0]);
         p->engine.ps.pages++;                  printf("%s", p->engine.ps.psmarg);
         printf("showpage\n");                  p->engine.ps.pages++;
                   printf("showpage\n");
           }
   
         printf("%%%%Trailer\n");          printf("%%%%Trailer\n");
         printf("%%%%Pages: %zu\n", p->engine.ps.pages);          printf("%%%%Pages: %zu\n", p->engine.ps.pages);
Line 674  ps_pletter(struct termp *p, int c)
Line 676  ps_pletter(struct termp *p, int c)
          * now at the current cursor.           * now at the current cursor.
          */           */
   
           if (PS_NEWPAGE & p->engine.ps.flags)
                   printf("%%%%Page: %zu %zu\n",
                                   p->engine.ps.pages + 1,
                                   p->engine.ps.pages + 1);
   
         if ( ! (PS_INLINE & p->engine.ps.flags)) {          if ( ! (PS_INLINE & p->engine.ps.flags)) {
                 ps_printf(p, "%zu %zu moveto\n(",                  ps_printf(p, "%zu %zu moveto\n(",
                                 AFM2PNT(p, p->engine.ps.pscol),                                  AFM2PNT(p, p->engine.ps.pscol),
Line 870  ps_endline(struct termp *p)
Line 877  ps_endline(struct termp *p)
         printf("%s", p->engine.ps.psmarg);          printf("%s", p->engine.ps.psmarg);
         printf("showpage\n");          printf("showpage\n");
         p->engine.ps.pages++;          p->engine.ps.pages++;
         printf("%%%%Page: %zu %zu\n",  
                         p->engine.ps.pages + 1,  
                         p->engine.ps.pages + 1);  
         p->engine.ps.psrow = p->engine.ps.top;          p->engine.ps.psrow = p->engine.ps.top;
         assert( ! (PS_NEWPAGE & p->engine.ps.flags));          assert( ! (PS_NEWPAGE & p->engine.ps.flags));
         p->engine.ps.flags |= PS_NEWPAGE;          p->engine.ps.flags |= PS_NEWPAGE;

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

CVSweb