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

Method _build_empty_row

markdown/extensions/tables.py:118–124  ·  view source on GitHub ↗

Build an empty row.

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

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected