summaryrefslogtreecommitdiff
path: root/mod/tex/context/third/rst/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <gesang@stud.uni-heidelberg.de>2013-03-12 17:05:16 +0100
committerPhilipp Gesang <gesang@stud.uni-heidelberg.de>2013-03-12 17:05:16 +0100
commit09dd07bcc2397ff03460d5e89f8125456c29e025 (patch)
treed65828105981aa94bfaa697358d09a799834609a /mod/tex/context/third/rst/rst_context.lua
parent9c6a8a9737e6f5b09ca65ed82a186b58e731e350 (diff)
downloadcontext-rst-09dd07bcc2397ff03460d5e89f8125456c29e025.tar.gz
fix spurious global; workaround buffer idiosyncrasy in manual
Diffstat (limited to 'mod/tex/context/third/rst/rst_context.lua')
-rw-r--r--mod/tex/context/third/rst/rst_context.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua
index e7637b3..b079730 100644
--- a/mod/tex/context/third/rst/rst_context.lua
+++ b/mod/tex/context/third/rst/rst_context.lua
@@ -72,12 +72,13 @@ rst_context.current_footnote_number = 0
rst_context.current_symbolnote_number = 0
function rst_context.addsetups(item)
+ local state = thirddata.rst.state
state.addme[item] = state.addme[item] or true
return 0
end
function rst_context.footnote_reference (label)
- local tf = state.footnotes
+ local tf = thirddata.rst.state.footnotes
if label:match("^%d+$") then -- all digits
local c = tonumber(label)
return [[\\footnote{\\getbuffer[__footnote_number_]].. c .."]}"
@@ -1219,7 +1220,7 @@ function rst_context.simple_table(tab)
end
function rst_context.footnote (label, content)
- local tf = state.footnotes
+ local tf = thirddata.rst.state.footnotes
rst_context.addsetups("footnotes")
if label:match("^%d+$") then -- all digits
tf.numbered[tonumber(label)] = rst_context.escape(inline_parser:match(content))