Removed timestamp from echoed input lines

This commit is contained in:
rxi
2014-06-28 12:58:05 +01:00
parent d85a4ee47d
commit 1a1a4289da

View File

@@ -504,8 +504,9 @@ function lovebird.recalcbuffer()
str = lovebird.htmlescape(line.str):gsub("\n", "<br>") str = lovebird.htmlescape(line.str):gsub("\n", "<br>")
end end
if line.type == "input" then if line.type == "input" then
str = '<span class="inputline">&#8729;&#8729;' .. str .. '</span>' str = '<span class="inputline">&#8729;&#8729;&#8729; ' ..
end str .. '</span>'
else
if line.count > 1 then if line.count > 1 then
str = '<span class="repeatcount">' .. line.count .. '</span> ' .. str str = '<span class="repeatcount">' .. line.count .. '</span> ' .. str
end end
@@ -513,6 +514,7 @@ function lovebird.recalcbuffer()
str = os.date('<span class="timestamp">%H:%M:%S</span> ', line.time) .. str = os.date('<span class="timestamp">%H:%M:%S</span> ', line.time) ..
str str
end end
end
return str return str
end end
lovebird.buffer = table.concat(lovebird.map(lovebird.lines, doline), "<br>") lovebird.buffer = table.concat(lovebird.map(lovebird.lines, doline), "<br>")