SpaWnAge / stagger

Automatically exported from code.google.com/p/stagger
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Add tag.scrub(), frame.scrub() methods #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
tag.scrub():  
   - Clear all flags.
   - Delete all unknown frames and error frames
   - Merge duplicate frames
   - Call frame.scrub() on all frames.

frame.scrub():
   - Clear all flags.
   - For text frames, set encoding to None.
   - For text frames, strip whitespace at the beginning/end of string 
values.
   - For text frames, remove empty strings from value list
   - Optionally replace text list with " / ".join(values)
   - Possibly verify language codes etc.

Original issue reported on code.google.com by Karoly.Lorentey on 24 Jun 2009 at 11:09