THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Ayman (mony) 

Attached to Project - awesome
Summary - escape ampersand character in pango markup text
Task Type - Bug Report
Category - Widgets
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - git/master
Due in Version - Undecided
Due Date - Undecided
Details - if you have a ampersand character in a markup text it will give you 
an error

e.g. in the music widget with music title/artist/album/etc.. has '&' in it
it will give you an error

[patch]
--- /usr/share/awesome/lib/wibox/widget/textbox.lua     2013-08-28 
16:57:13.000000000 +0300
+++ /home/mony/.config/awesome/wibox/widget/textbox.lua 2013-09-02 
16:48:50.033006520 +0300
@@ -56,6 +56,7 @@
 --- Set a textbox' text.
 -- @param text The text to set. This can contain pango markup (e.g. 
<b>bold</b>)
 function textbox:set_markup(text)
+    if string.find(text, '&', 0) then text = string.gsub(text, '&', '&amp;') 
end
     local attr, parsed = Pango.parse_markup(text, -1, 0)
     -- In case of error, attr is false and parsed is an error message
     if not attr then error(parsed) end
[/patch]



More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1177

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to