Changeset 2199 for pykota/trunk
- Timestamp:
- 04/12/05 08:19:13 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/pdlanalyzer.py
r2197 r2199 87 87 pagecount = 0 88 88 for line in self.infile.xreadlines() : 89 if line.startswith( "%%Page: ") :89 if line.startswith(r"%%Page: ") : 90 90 pagecount += 1 91 elif line.startswith( "%%Requirements: numcopies(") :91 elif line.startswith(r"%%Requirements: numcopies(") : 92 92 try : 93 93 number = int(line.strip().split('(')[1].split(')')[0]) … … 97 97 if number > self.copies : 98 98 self.copies = number 99 elif line.startswith( "%%BeginNonPPDFeature: NumCopies ") :99 elif line.startswith(r"%%BeginNonPPDFeature: NumCopies ") : 100 100 # handle # of copies set by some Windows printer driver 101 101 try :