X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=pret-lam.lua;h=43e8c8cc25f305ecf44b10e7d5a9b3b4311ca0ea;hp=41ffbc7f779b28f28e188a38669dd0c3ecad8c4a;hb=344fd4d4338685c0bc2e66d395edb9409965c438;hpb=03068992fa44475f901eb34cec49f2a2304b473f diff --git a/pret-lam.lua b/pret-lam.lua index 41ffbc7..43e8c8c 100644 --- a/pret-lam.lua +++ b/pret-lam.lua @@ -175,7 +175,6 @@ local function do_indent(line) copyind = utf.sub(indentlines[prev], 1, #newind) setwidth = "\\setwidthof{" .. copyind .. "}\\to\\pretlamalignwidth" hskip = "\\hskip\\pretlamalignwidth" - print("{" .. setwidth .. hskip .. "}" .. rest) return "{" .. setwidth .. hskip .. "}" .. rest end -- No previous line? Just return the unmodified line then @@ -226,7 +225,7 @@ function vis.flush_line(str,nested) end function vis.do_line(str, no_indent) - result = {} + local result = {} if not no_indent then -- Allow ignore of the indentation stuff when we're calling ourselves -- for a partial line.