'Ends buffering character data and returns all data saved since
the preceding call to the save_bgn() method.
If the nofill flag is false, whitespace is collapsed to single
spaces.  A call to this method without a preceding call to the
save_bgn() method will raise a TypeError exception.'

def save_end(self):

    data = self.savedata
    self.savedata = None
    if (not self.nofill):
        data = '    '.join(data.split())
    return data
