diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-11 16:56:10 +0200 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-11 16:56:10 +0200 |
commit | 490d03e4fb8264a420d2990ef0c1e2e8add937ec (patch) | |
tree | 132b8dc8af75bf2aa6ecbaa44f9b4cb8f8358859 | |
parent | b3bfc5af1f3579496d0eef0151bdf7b1ab06cfac (diff) | |
download | context-rst-490d03e4fb8264a420d2990ef0c1e2e8add937ec.tar.gz |
simple table
-rw-r--r-- | rst_context.lua | 1 | ||||
-rw-r--r-- | rst_helpers.lua | 3 |
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] |