The rendering of a Narrative instance is
straightforward: see Section 4.7, “XHTML rendering of narrative elements”.
Each contained Paragraph is rendered
in a div class=PARA_CLASS.
# - - - M o n t h C e l l . _ _ n a r r a t i v e
def __narrative ( self, parent, narr ):
'''Render a birdnotes.Narrative instance into XHTML.
[ (parent is an et.Element) and
(narr is a birdnotes.Narrative instance) ->
parent +:= XHTML rendering of narr ]
'''
#-- 1 --
for para in narr.genParas():
#-- 1 body --
# [ parent +:= a div class=PARA_CLASS element
# containing the XHTML rendering of para ]
self.__paragraph ( parent, para )