Changeset 422 for pkpgcounter/trunk/pkpgpdls/plain.py
- Timestamp:
- 09/15/06 11:38:46 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/plain.py
r418 r422 72 72 if line.endswith("\n") or line.endswith("\r") : 73 73 linecount += 1 74 if (linecount > pagesize) \ 75 or (line.find("\f") != -1) : 74 if (linecount > pagesize) : 76 75 pagecount += 1 77 76 linecount = 0 77 else : 78 cnt = line.count("\f") 79 if cnt : 80 pagecount += cnt 81 linecount = 0 78 82 else : 79 83 raise pdlparser.PDLParserError, "Unsupported file format. Please send the file to %s" % version.__authoremail__