diff options
Diffstat (limited to 'rst_context.lua')
-rw-r--r-- | rst_context.lua | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/rst_context.lua b/rst_context.lua index fb69dfd..7a556ab 100644 --- a/rst_context.lua +++ b/rst_context.lua @@ -490,14 +490,21 @@ function rst_context.grid_table (tab) ]] local test = "" for i,r in ipairs(tab.rows) do - --if not r.ignore then - if r.newrow and not r.ignore then - --if r.newrow then - --test = test .. string.format("%2s>%s\n", i, #j) - --print(i, unpack(j)) + local isempty = true + for n, cell in ipairs(r) do + if cell.variant == "normal" then + isempty = false + break + end + end + + --if not ( r.sepline or + --r.sephead )then + if not isempty then local row = [[\\bTR]] for n,c in ipairs(r) do - if not c.parent then + if not (c.parent or + c.variant == "separator") then local celltext = c.stripped if c.span.x or c.span.y then local span_exp = "[" |