INNER CODE UNIT · Python

new_nodes

KATRIN-Experiment/Kassiopeia · Scripts/gen-bindings-docs.py:283

                    new_nodes = node.makeTableRST(level+1, stack, nodes, key=node_key, with_sections=with_sections)
                    nodes.union(new_nodes)

        return nodes

    """
    Produces node documentation in MarkDown (MD) format. Includes child elements. Section breaks and XML snippets are optional.
    """
    def makeTableMD(self, level=0, stack=[], nodes=set(), key='', with_sections=False, with_examples=False):
        global base_url
        numCols = 6
        colWidth = 5
        colHeaders = ('element name', 'source files', 'child elements', 'child types', 'attributes', 'attribute types')
        if not key and self.xml_names:
            key = list(self.xml_names)[0]

        escapeStr = lambda txt: txt.translate(dict([ (ord(c),f'\{c}') for c in "<>" ]))  # escape invalid chars
        cleanStr = lambda txt: txt.translate(dict([ (ord(c),f'_') for c in "<>" ]))  # strip invalid chars

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…