summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-08 17:26:37 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-08 17:26:37 +0200
commit875ca73b3e6d3f61097ae4c6ccae356743d6abef (patch)
tree8b8559b5298e629b152d2de289e0c9428fffc369 /rst_context.lua
parentd7996cadc2e117cc163291abe953dec15cee6826 (diff)
downloadcontext-rst-875ca73b3e6d3f61097ae4c6ccae356743d6abef.tar.gz
new table handler finally works
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua19
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 = "["