From 2ee8b79e19e6121d63be5921f37485db0389a249 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 30 Apr 2011 22:49:58 +0200 Subject: catcode issue; empty table cell fallback --- mod/tex/context/third/rst/rst_context.lua | 4 ++-- mod/tex/context/third/rst/t-rst.mkiv | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'mod/tex/context/third/rst') diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua index 85fef58..8663039 100644 --- a/mod/tex/context/third/rst/rst_context.lua +++ b/mod/tex/context/third/rst/rst_context.lua @@ -1121,7 +1121,7 @@ function rst_context.simple_table(tab) dbg_write("%7s | ", cell.content) local celltext = inline_parser:match(cell.content) if cell.span then - head = head .. string.format([=[\\bTH[nc=%s]%s\\eTH]=], cell.span.x, celltext) + head = head .. string.format([=[\\bTH[nc=%s]%s\\eTH]=], cell.span.x, celltext or "") else head = head .. [[\\bTH ]] .. celltext .. [[\\eTH]] end @@ -1160,7 +1160,7 @@ function rst_context.simple_table(tab) dbg_write("%7s | ", cell.content) local celltext = inline_parser:match(cell.content) if cell.span then - body = body .. string.format([=[\\bTC[nc=%s]%s\\eTC]=], cell.span.x, celltext) + body = body .. string.format([=[\\bTC[nc=%s]%s\\eTC]=], cell.span.x, celltext or "") else body = body .. [[\\bTC ]] .. celltext .. [[\\eTC]] end diff --git a/mod/tex/context/third/rst/t-rst.mkiv b/mod/tex/context/third/rst/t-rst.mkiv index ffcd839..a4572a8 100644 --- a/mod/tex/context/third/rst/t-rst.mkiv +++ b/mod/tex/context/third/rst/t-rst.mkiv @@ -47,7 +47,8 @@ \catcode`\^^I = 12 % ascii tab is a blank space \catcode`\^^M = 12 % ascii return is end-line \catcode`\^^L = 12 % ascii form-feed - \catcode`\ = 10 % ascii space is blank space + %\catcode`\ = 10 % ascii space is blank space + \catcode`\ = 12 % ascii space is blank space \catcode`\^^Z = 12 \catcode`\\ = 0 \catcode`\% = 12 -- cgit v1.2.3