Handle missing verbatim arguments and empty LaTeX matrices
This commit is contained in:
parent
bc25eeb06a
commit
3dfaed5041
1 changed files with 20 additions and 6 deletions
|
|
@ -386,7 +386,7 @@ def fmt_matrix_environment_node(node, l2tobj):
|
|||
state.new_row() # finish the last row
|
||||
|
||||
# now format the contents as array --
|
||||
max_char_width = max((len(x) for row in state.matrix_rows for x in row))
|
||||
max_char_width = max((len(x) for row in state.matrix_rows for x in row), default=0)
|
||||
matrix_contents = "; ".join(
|
||||
(
|
||||
" ".join((x.rjust(max_char_width, " ") for x in row))
|
||||
|
|
|
|||
Loading…
Reference in a new issue