6.14.9.12.2. Displays, Line and Page Breaks

Displays map directly to the corresponding Lout primitives.

Start python section to interscript/weavers/lout.py[16 /34 ] Next Prev First Last
   208: #line 421 "lout_weaver.ipk"
   209:     def begin_displayed_text(self):
   210:         self._write('@QuotedDisplay {\n')
   211: 
   212:     def end_displayed_text(self):
   213:         self._write('}\n')
   214: 
   215:     def begin_displayed_code(self):
   216:         self._writeline('@QD lines @Break {Courier Base} @Font lout @Space{')
   217: 
   218:     def end_displayed_code(self):
   219:         self._writeline('}')
   220: 
   221:     def line_break(self):
   222:         self._writeline('//')
   223: 
   224:     def page_break(self):
   225:         self._writeline('@NP')
   226: 
   227:     def write_tagged(self, tag, data):
   228:         # RESOLVE: What are the other tags here?
   229:         if tag == "small":
   230:             self._write("{-1p} @Font {%s}" % self.cvt_text(data))
   231:         else:
   232:             self.write(data)
   233:         return
End python section to interscript/weavers/lout.py[16]