MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / _build_empty_row

Method _build_empty_row

markdown/extensions/tables.py:121–127  ·  view source on GitHub ↗

Build an empty row.

(self, parent: etree.Element, align: Sequence[str | None])

Source from the content-addressed store, hash-verified

119 self._build_row(row.strip(' '), tbody, align)
120
121 def _build_empty_row(self, parent: etree.Element, align: Sequence[str | None]) -> None:
122 """Build an empty row."""
123 tr = etree.SubElement(parent, 'tr')
124 count = len(align)
125 while count:
126 etree.SubElement(tr, 'td')
127 count -= 1
128
129 def _build_row(self, row: str, parent: etree.Element, align: Sequence[str | None]) -> None:
130 """ Given a row of text, build table cells. """

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected