docs: def endSections(self, level=u'0'):
          """Closes all sections of level >= sectnum. Defaults to closing all open sections"""
  
          iSectionsClosed = self.storeSectionState(level)
          self.document.append("</section>\n" * iSectionsClosed)