Changeset 764

Show
Ignore:
Timestamp:
12/11/06 13:33:39 (2 years ago)
Author:
mfenniak
Message:

fix bug in ascii 85 decode where whitespace between terminating ~ and > could cause a tb. All whitespace is removed prior to decoding now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pypdf/trunk/pyPdf/filters.py

    r733 r764  
    162162        x = 0 
    163163        hitEod = False 
     164        # remove all whitespace from data 
     165        data = [y for y in data if not (y in ' \n\r\t')] 
    164166        while not hitEod: 
    165167            c = data[x] 
     
    167169                x += 2 
    168170                continue 
    169             elif c.isspace(): 
    170                 x += 1 
    171                 continue 
     171            #elif c.isspace(): 
     172            #    x += 1 
     173            #    continue 
    172174            elif c == 'z': 
    173175                assert len(group) == 0