Try to make sense of the table data!
(self)
| 665 | return t |
| 666 | |
| 667 | def parseData(self): |
| 668 | """Try to make sense of the table data!""" |
| 669 | rawdata = string.strip(string.join(self.rawBlocks, '')) |
| 670 | lines = string.split(rawdata, self.rowDelim) |
| 671 | #clean up... |
| 672 | lines = map(string.strip, lines) |
| 673 | self.data = [] |
| 674 | for line in lines: |
| 675 | cells = string.split(line, self.fieldDelim) |
| 676 | self.data.append(cells) |
| 677 | |
| 678 | #get the width list if not given |
| 679 | if not self.widths: |
| 680 | self.widths = [None] * len(self.data[0]) |
| 681 | if not self.heights: |
| 682 | self.heights = [None] * len(self.data) |
| 683 | |
| 684 | ## import pprint |
| 685 | ## print 'table data:' |
no test coverage detected