summaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-01-14 09:33:13 +0100
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-01-14 09:33:13 +0100
commit1f095db3ff22d2b6f5ad2015edc8b8bd7278f1cd (patch)
treed4b9c92bef1de4581e1991a35b2a918104da297b /mod
parent384123c5bc51ceef67ce5d00fd926feddf015ea5 (diff)
downloadcontext-rst-1f095db3ff22d2b6f5ad2015edc8b8bd7278f1cd.tar.gz
removed some leftover debugging code
Diffstat (limited to 'mod')
-rw-r--r--mod/tex/context/third/rst/rst_context.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua
index 79c010b..85fef58 100644
--- a/mod/tex/context/third/rst/rst_context.lua
+++ b/mod/tex/context/third/rst/rst_context.lua
@@ -22,8 +22,6 @@ if not context then
rst_directives = require "rst_directives"
end
-if not helpers.string then print("Scheiße") os.exit() end
-
local utf = unicode.utf8
local dbg_write = helpers.dbg_writef
@@ -77,22 +75,18 @@ function rst_context.footnote_reference (label)
local tf = state.footnotes
if label:match("^%d+$") then -- all digits
local c = tonumber(label)
- --print("creating footnote nr " .. c)
return [[\\footnote{\\getbuffer[__footnote_number_]].. c .."]}"
elseif label == "#" then --autonumber
local rc = rst_context.current_footnote_number
rc = rc + 1
- --print("creating footnote nr " .. rc)
rst_context.current_footnote_number = rc
return [[\\footnote{\\getbuffer[__footnote_number_]].. rc .."]}"
elseif label:match("^#.+$") then
local thelabel = label:match("^#(.+)$")
- --print("creating labeled footnote " .. thelabel)
return [[\\footnote{\\getbuffer[__footnote_label_]].. thelabel .."]}"
elseif label == "*" then
local rc = rst_context.current_symbolnote_number
rc = rc + 1
- --print("creating symbolnote nr " .. rc)
rst_context.current_symbolnote_number = rc
return [[\\symbolnote{\\getbuffer[__footnote_symbol_]].. rc .."]}"
else -- “citation reference” for now treating them like footnotes
@@ -605,7 +599,6 @@ function rst_context.paragraph (data)
else
str = data
end
- --print(str)
return string.format([[
\\startparagraph
@@ -971,8 +964,6 @@ end
function rst_context.block_quote (tab)
rst_context.addsetups("blockquote")
- print(">>"..tab[1].."<<")
- print(inline_parser:match(tab[1]))
local str = [[
\\startlinecorrection
\\blank[small]