From 1f095db3ff22d2b6f5ad2015edc8b8bd7278f1cd Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 14 Jan 2011 09:33:13 +0100 Subject: removed some leftover debugging code --- mod/tex/context/third/rst/rst_context.lua | 9 --------- 1 file changed, 9 deletions(-) (limited to 'mod/tex/context/third/rst/rst_context.lua') 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] -- cgit v1.2.3