当前位置: 首页>>代码示例>>Python>>正文


Python nodes.NodeVisitor类代码示例

本文整理汇总了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 = []
开发者ID:Br3nda,项目名称:pythoscope,代码行数:9,代码来源:rst2wikidot.py

示例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
开发者ID:adityaathalye,项目名称:zine,代码行数:10,代码来源:translator.py

示例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
开发者ID:shirou,项目名称:sphinxcontrib-indesignbuilder,代码行数:11,代码来源:writer.py

示例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
开发者ID:shirou,项目名称:sphinxcontrib-indesignbuilder,代码行数:12,代码来源:webdbwriter.py

示例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
开发者ID:hagenw,项目名称:sphinx,代码行数:6,代码来源:__init__.py

示例6: __init__

 def __init__(self, document):
     NodeVisitor.__init__(self, document)
     self.found_words = []
开发者ID:fedor4ever,项目名称:linux_build,代码行数:3,代码来源:search.py

示例7: __init__

 def __init__(self, document, lang):
     NodeVisitor.__init__(self, document)
     self.found_words = []
     self.found_title_words = []
     self.lang = lang
开发者ID:jschueller,项目名称:sphinx,代码行数:5,代码来源:__init__.py

示例8: __init__

 def __init__(self, document, errors):
     NodeVisitor.__init__(self, document)
     self._errors = errors
     self.fields = []
     self._newfields = {}
开发者ID:jlerouge,项目名称:epydoc,代码行数:5,代码来源:restructuredtext.py


注:本文中的docutils.nodes.NodeVisitor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。