6.14.9.15.2. Setting a Row

Rows are relatively straight-forward. We make no attempt to verify that each row has the same number of columns as the others. Although Lout permits adding rules on a row by row basis, there is currently nothing in the API that permits this. In addition, the table_rule method is merely stubbed. What row does the rule apply to? Is it to be drawn immediately?

Start python section to interscript/weavers/lout.py[26 /34 ] Next Prev First Last
   383: #line 782 "lout_weaver.ipk"
   384:     def table_row(self, data):
   385:         colName = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
   386:         numCols = len(data)
   387:         if numCols > colName:
   388:             print "lout_weaver.table_row: Using first %d columns" % len(colName)
   389:             numCols = len(colName)
   390: 
   391:         self._write('    @Rowa ')
   392:         for i in range(numCols):
   393:             self._write("%s{%s} " % (colName[i], self.cvt_text(data[i])))
   394:         self._writeline()
   395:         return
   396: 
   397:     def table_rule(self):
   398:         #RESOLVE
   399:         return
End python section to interscript/weavers/lout.py[26]