2012-02-23 | Paul Boddie | raw annotate files changeset graph | Added support for column and row spans so that the contents of a table can still be sorted through the definition of a uniform grid of cells whose contents can then be compared on a row-by-row basis. Fixed sort direction labelling in the sort controls. Tidied up the sorting logic, adding support for sorting where only the headers and name attributes have been defined for a table. |
1 #!/usr/bin/env python 2 3 from ImprovedTableParser import replaceMarkers 4 5 text = """ 6 {{{ 7 Hello 8 \\{\\{\\{ 9 Hello again 10 But not \\{\\{\\{ this \\}\\}\\} 11 \\\\{\\\\{\\\\{ 12 And once again 13 \\\\}\\\\}\\\\} 14 And again 15 \\}\\}\\} 16 again 17 }}} 18 """ 19 20 replaced = replaceMarkers(text) 21 22 print text 23 print 24 print replaced 25 26 # vim: tabstop=4 expandtab shiftwidth=4