Changeset 401 for pkpgcounter

Show
Ignore:
Timestamp:
09/11/06 11:24:35 (18 years ago)
Author:
jerome
Message:

Doesn't increment the page count if the parser is inside an HPGL2 block.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/newpcl345.py

    r400 r401  
    115115        """Handle the FF marker.""" 
    116116        #self.logdebug("FORMFEED %i at %08x" % (self.pagecount, self.pos-1)) 
    117         self.pagecount += 1 
     117        if not self.hpgl2 : 
     118            # Increments page count only if we are not inside an HPGL2 block 
     119            self.pagecount += 1 
    118120         
    119121    def escPercent(self) :