Merge pull request #215 from rohieb/fix/task-xml-escape

task: fix XML escaping in notification
This commit is contained in:
Luke Bonham 2016-07-22 18:23:51 +02:00 committed by GitHub
commit 1744c45790

View file

@ -52,7 +52,7 @@ function task:show(scr_pos)
c_text = "<span font='" c_text = "<span font='"
.. task.font .. " " .. task.font .. " "
.. task.font_size .. "'>" .. task.font_size .. "'>"
.. f:read("*all"):gsub("\n*$", "") .. awful.util.escape(f:read("*all"):gsub("\n*$", ""))
.. "</span>" .. "</span>"
f:close() f:close()
@ -75,7 +75,7 @@ function task:prompt_add()
c_text = "\n<span font='" c_text = "\n<span font='"
.. task.font .. " " .. task.font .. " "
.. task.font_size .. "'>" .. task.font_size .. "'>"
.. f:read("*all") .. awful.util.escape(f:read("*all"))
.. "</span>" .. "</span>"
f:close() f:close()
@ -107,7 +107,7 @@ function task:prompt_search()
c_text = "<span font='" c_text = "<span font='"
.. task.font .. " " .. task.font .. " "
.. task.font_size .. "'>" .. task.font_size .. "'>"
.. c_text .. awful.util.escape(c_text)
.. "</span>" .. "</span>"
end end