2012-02-19 | Paul Boddie | raw annotate files changeset graph | Changed the sort controls to be a list of columns, with the selected column appearing as an insertion marker alongside the list where the column could be inserted to change the criteria, and with the column appearing as a link in the list if already part of the criteria, enabling the column to be removed from the criteria. If appropriate, a link permitting the column to be added or moved to the end of the list is also shown. |
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