MCPcopy Create free account
hub / github.com/astanin/python-tabulate / _latex_row

Function _latex_row

tabulate/__init__.py:334–340  ·  view source on GitHub ↗
(cell_values, colwidths, colaligns, escrules=LATEX_ESCAPE_RULES)

Source from the content-addressed store, hash-verified

332
333
334def _latex_row(cell_values, colwidths, colaligns, escrules=LATEX_ESCAPE_RULES):
335 def escape_char(c):
336 return escrules.get(c, c)
337
338 escaped_values = ["".join(map(escape_char, cell)) for cell in cell_values]
339 rowfmt = DataRow("", "&", "\\\\")
340 return _build_simple_row(escaped_values, rowfmt)
341
342
343def _rst_escape_first_column(rows, headers):

Callers

nothing calls this directly

Calls 1

_build_simple_rowFunction · 0.85

Tested by

no test coverage detected