awesome/lib
Uli Schlachter 6fa27c7b48 Naughty: Catch invalid markup in notifications
Previously, an invalid markup caused an empty popup. Since the C core now throws
a lua error on invalid markup, we have a way to notice that something is wrong.

This patch first tries to set the notification's text the same way we did
previously. If that fails, everything is escaped and the result is used as the
text for the notification.

Thanks to farhaven/Gregor Best for the initial version of this and for the
string.gsub() call I stole from him. :)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-07-16 19:35:51 +02:00
..
awful Tasklist: Listen to the correct signals 2010-06-22 16:45:06 +02:00
beautiful.lua.in Revert "beautiful: init default theme by default" and "awesomerc: stop handling beautiful" 2009-09-28 13:43:49 +02:00
naughty.lua.in Naughty: Catch invalid markup in notifications 2010-07-16 19:35:51 +02:00