本文整理汇总了Python中docutils.nodes.NodeVisitor类的典型用法代码示例。如果您正苦于以下问题:Python NodeVisitor类的具体用法?Python NodeVisitor怎么用?Python NodeVisitor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NodeVisitor类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, document):
NodeVisitor.__init__(self, document)
self.section_level = 1
self.first_paragraph = True
self.inside_literal_block = False
self.lists = []
self.block_input = False
self._content = []
示例2: __init__
def __init__(self, document):
NodeVisitor.__init__(self, document)
self.root = RootElement()
self.curnode = self.root
self.context = []
self.compact_simple = None
self.compact_field_list = None
self.compact_p = 1
self.initial_header_level = 2
self.section_level = 0
示例3: __init__
def __init__(self, document):
NodeVisitor.__init__(self, document)
self._output = StringIO()
self.generator = XMLGenerator(self._output, "utf-8")
self.generator.outf = self._output
self.listenv = None
self.tableenv = False
self.within_index = False
self.restrect_newline = True
示例4: __init__
def __init__(self, document, builder):
NodeVisitor.__init__(self, document)
self.builder = builder
self._output = StringIO()
self.generator = XMLGenerator(self._output, "utf-8")
self.generator.outf = self._output
self.listenv = None
self.within_index = False
self.licount = 0
self.admonition = None
示例5: __init__
def __init__(self, document, lang):
# type: (nodes.Node, SearchLanguage) -> None
NodeVisitor.__init__(self, document)
self.found_words = [] # type: List[unicode]
self.found_title_words = [] # type: List[unicode]
self.lang = lang
示例6: __init__
def __init__(self, document):
NodeVisitor.__init__(self, document)
self.found_words = []
示例7: __init__
def __init__(self, document, lang):
NodeVisitor.__init__(self, document)
self.found_words = []
self.found_title_words = []
self.lang = lang
示例8: __init__
def __init__(self, document, errors):
NodeVisitor.__init__(self, document)
self._errors = errors
self.fields = []
self._newfields = {}