def tostring(self, inject):
        """
        Convert an element to a single string and allow the passed inject method to place content before any
        element.
        """

        return inject(self, '\n'.join(f'{division.tostring(inject)}' for division in self.divisions))
def tostring ( self , inject ) : return inject ( self , '\n' . join ( f'{division.tostring(inject)}' for division in self . divisions ) )
Convert an element to a single string and allow the passed inject method to place content before any
        element.