From 490d03e4fb8264a420d2990ef0c1e2e8add937ec Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 11 Sep 2010 16:56:10 +0200 Subject: simple table --- rst_context.lua | 1 + rst_helpers.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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] -- cgit v1.2.3