PgBiel/typst-tablex

Division by Zero with long cell content

RolfBremer opened this issue · 4 comments

The following tablex definition causes a

error: cannot divide by zero
     ┌─ C:\Users\...\tablex.typ:1100:25
     │
1100 │             fair_share = remaining / auto_cols_remaining
     │                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Her is the table definition:

#tablex(
	columns: 3,

	[Name],[Entität],[Eigenschaft],
	[GammaTaurus],[ThisIsASuperlongSymbolicName which is similar important as Supercalifragilistic],[],
)

When I put some linebreaks into the content (second column), it works fine.

PgBiel commented

Fixed in e75ce1a, thanks!

That was fix - works fine now! Thank you for the excellent component!

PgBiel commented

That's great to hear! You're welcome! 🤝