diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2011-04-30 22:49:58 +0200 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2011-04-30 22:49:58 +0200 |
commit | 2ee8b79e19e6121d63be5921f37485db0389a249 (patch) | |
tree | 6341d3f9d534f908fbefedbfe2898ead8c9368f1 /mod/tex/context/third/rst | |
parent | 879748268913f8a779ec861cf4d983766f88e09e (diff) | |
download | context-rst-2ee8b79e19e6121d63be5921f37485db0389a249.tar.gz |
catcode issue; empty table cell fallback
Diffstat (limited to 'mod/tex/context/third/rst')
-rw-r--r-- | mod/tex/context/third/rst/rst_context.lua | 4 | ||||
-rw-r--r-- | mod/tex/context/third/rst/t-rst.mkiv | 3 |
2 files changed, 4 insertions, 3 deletions
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 |