summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rst_context.lua1
-rw-r--r--rst_helpers.lua3
2 files changed, 3 insertions, 1 deletions
diff --git a/rst_context.lua b/rst_context.lua
index 851bd7e..b3c09a6 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -685,6 +685,7 @@ end
function rst_context.simple_table(tab)
local head
if tab.has_head then
+ print(tab.head_end)
head = [[
\\setupTABLE[c][first] [background=color, backgroundcolor=grey, style=\tt]
\\setupTABLE[c][each] [frame=on]
diff --git a/rst_helpers.lua b/rst_helpers.lua
index fb0dd84..4ec28fe 100644
--- a/rst_helpers.lua
+++ b/rst_helpers.lua
@@ -336,6 +336,7 @@ function helpers.table.create(raw)
this_row.seppart = p.sep_part:match(row)
if this_row.sephead then
self.has_head = true
+ self.head_end = nr
end
local splitted = { p.cells:match(row, 1, selflayout) }
@@ -541,7 +542,7 @@ function helpers.table.simple(raw)
newrow.separator = true
if nr > 1 and #raw > nr then -- Ends the header.
rows.has_head = true
- newrow.end_head = true
+ newrow.head_end = nr
end
elseif multispans[nr] then
local spans = multispans[nr]