diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/odsfile/odsfile.lua | 3 | ||||
-rw-r--r-- | Master/texmf-dist/tex/lualatex/odsfile/odsfile.sty | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/lualatex/odsfile/odsfile.lua b/Master/texmf-dist/tex/lualatex/odsfile/odsfile.lua index 406700b9b3a..ffd47229aca 100644 --- a/Master/texmf-dist/tex/lualatex/odsfile/odsfile.lua +++ b/Master/texmf-dist/tex/lualatex/odsfile/odsfile.lua @@ -87,8 +87,7 @@ function getColumnCount(tbl) local columns = tbl["table:table-column"] or {} local x = 0 for _, c in pairs(columns) do - local attr = c["_attr"] or {} - local rep = attr["table:number-columns-repeated"] or 1 + local rep = c["table:number-columns-repeated"] or 1 x = x + rep end return x diff --git a/Master/texmf-dist/tex/lualatex/odsfile/odsfile.sty b/Master/texmf-dist/tex/lualatex/odsfile/odsfile.sty index 1d7609b981c..57a2be71952 100644 --- a/Master/texmf-dist/tex/lualatex/odsfile/odsfile.sty +++ b/Master/texmf-dist/tex/lualatex/odsfile/odsfile.sty @@ -166,7 +166,10 @@ rowtemplate=nil coltypes = makeColtypes(headings) end end - tex.print(odsreader.interp(templates[currenttemplate],{content=table.concat(content, "\\\\ "..rowseparator),coltypes=coltypes,colheading=colheading,rowsep=rowseparator})) + content = table.concat(content, "\\\\ "..rowseparator) .. "\\\\" + local result = odsreader.interp(templates[currenttemplate],{content=content,coltypes=coltypes,colheading=colheading,rowsep=rowseparator}) + print(result) + tex.print(result) else local content = {} currenttemplate = currenttemplate or "empty" |