LTN12 bug removed.

This commit is contained in:
Diego Nehab
2004-11-28 02:36:07 +00:00
parent 05e8f24385
commit 297b32e828
4 changed files with 39 additions and 16 deletions

View File

@ -49,6 +49,15 @@ mime.decodet['quoted-printable'] = function()
return ltn12.filter.cycle(unqp, "")
end
local io, string = io, string
local function format(chunk)
if chunk then
if chunk == "" then return "''"
else return string.len(chunk) end
else return "nil" end
end
-- define the line-wrap filters
mime.wrapt['text'] = function(length)
length = length or 76