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
1 changed files with 3 additions and 3 deletions

View File

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