Changeset 563

Show
Ignore:
Timestamp:
01/07/08 21:05:51 (16 years ago)
Author:
jerome
Message:

Now correctly ignores the EOJ statement and the PCLXL marker statement.

Files:
1 modified

Legend:

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

    r472 r563  
    113113                else : 
    114114                    self.logdebug("Invalid JL statement [%s]" % repr(statement)) 
     115            elif (not statement) \ 
     116                  or (statement == r"%-12345X@PJL EOJ") \ 
     117                  or statement[2:].startswith("HP-PCL XL;") : 
     118                self.logdebug("Ignored JL statement [%s]" % repr(statement)) 
    115119            else : 
    116120                self.logdebug("Invalid JL statement [%s]" % repr(statement)) 
    117121        self.cleanvars() 
    118122        self.parsed = 1 
     123        # self.logdebug("%s\n" % str(self)) 
    119124         
    120125class EJLParser(PJLParser) :