def visitNodeHeader(self, node):
        level = int(node.tagName[1])
        difference, self.currentLevel = level-self.currentLevel, level
        self.writer('<section>'*difference+'</section>'*-difference)
        if difference<=0:
            self.writer('</section>\n<section>')
        self.writer('<title>')
        self.visitNodeDefault(node)
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/lore/docbook.py/DocbookSpitter.visitNodeHeader/original