Changeset 437 for pkpgcounter/trunk

Show
Ignore:
Timestamp:
11/28/06 18:03:07 (18 years ago)
Author:
jerome
Message:

Fixed a problem in the PostScript? parser with some versions (or settings)
or a2ps and endscript.

Location:
pkpgcounter/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/NEWS

    r435 r437  
    2222pkpgcounter News : 
    2323 
     24  * 2.12 : 
     25   
     26    - Fixed a problem with the PostScript parser. 
     27     
    2428  * 2.11 : 
    2529   
  • pkpgcounter/trunk/pkpgpdls/postscript.py

    r428 r437  
    101101                proceed = 1 
    102102                try : 
    103                     newpagenum = int(line.split(']')[0].split()[1]) 
     103                    # treats both "%%Page: x x" and "%%Page: (x-y) z" (probably N-up mode) 
     104                    newpagenum = int(line.split(']')[0].split()[-1]) 
    104105                except :     
    105106                    notinteger = 1 # It seems that sometimes it's not an integer but an EPS file name 
  • pkpgcounter/trunk/pkpgpdls/version.py

    r435 r437  
    2323 
    2424 
    25 __version__ = "2.11" 
     25__version__ = "2.12" 
    2626 
    2727__doc__ = """pkpgcounter : a generic Page Description Languages parser."""