6.14.9.16.3. Keyed Lists

Keyed lists present us with a bit of a problem. Lout provides us with 3 types of tagged lists, regular, wide and very wide. It also provides us with 2 types of items: regular and dropped. If a regular item is longer than the indentation of the list, that item will overwrite the body. Since Interscript cannot possibly provide all the options that Lout does, we make an assumption: always use a regular tagged list and always drop the item. This may look odd in some cases, but in no case will anything ever be overwritten.

Start python section to interscript/weavers/lout.py[29 /34 ] Next Prev First Last
   428: #line 869 "lout_weaver.ipk"
   429:     def begin_keyed_list(self):
   430:         self._writeline("\n@TaggedList")
   431: 
   432:     def end_keyed_list(self):
   433:         self._writeline("@EndList")
   434: 
   435:     def begin_keyed_list_item(self, key):
   436:         self._write("@DTI{")
   437:         self.write(key)
   438:         self._write("}{")
   439: 
   440:     def end_keyed_list_item(self):
   441:         self._writeline("}")
   442: 
End python section to interscript/weavers/lout.py[29]