You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One more thing related to rowspan.
If there are rowspans in a table you cannot really use groups to assemble tables and check if the table still fits on the page, right?
I am getting this error where I have rowspan and used the model of assembling tables as shown in the speedata manual.
<Error code='1'>[page 2] ...am Files\speedata-publisher\sw/lua/publisher\tabular.lua:839: attempt to perform arithmetic on a nil value
...ram Files\speedata-publisher\sw/lua/publisher\spinit.lua:45: in function 'call'
...ram Files\speedata-publisher\sw/lua/publisher\spinit.lua:376: in function 'main_loop'
...ram Files\speedata-publisher\sw/lua/publisher\spinit.lua:387: in main chunk
[C]: in function 'require'
[\directlua]:1: in main chunk</Error>
I think when you add new rows one by one, it cannot easily know how to rowspan.
I guess for this issue I need to write a workaround in the layout, right?
Attached you can see an example.
It's a bit of a mess...
The data.xml has 6 tables (copy-pasted, just for content), only table 4 has rowspan. So, at the moment it prints only first two table then it crashes.
If you delete table 4 from the data, it prints the remaining 5 tables correctly.
@Demosteneus You have a logic error in your code. The table is typeset in one of the iterations with one row which has rowspan > 1 and therefore fails. (moretrs>0 in /text/table/tgroup/tbody/tr/td). Next version has a better error message. You must always ensure that number of rowspan does not exceed the number of rows in the table.
.. so the answer to your question is: yes, you need to take extra steps if you add rowspan and build the table line by line.