Awful.menu: Fix the text
Looks like someone wasn't using set_markup() where he was supposed to do so. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
688b4fb628
commit
e64d36b104
|
@ -208,11 +208,11 @@ local function add_item(data, num, item_info)
|
||||||
-- Create the item label widget
|
-- Create the item label widget
|
||||||
local label = wibox.widget.textbox()
|
local label = wibox.widget.textbox()
|
||||||
local key = ''
|
local key = ''
|
||||||
label.text = string.gsub(util.escape(item_info[1]), "&(%w)",
|
label:set_markup(string.gsub(util.escape(item_info[1]), "&(%w)",
|
||||||
function (l)
|
function (l)
|
||||||
key = string.lower(l)
|
key = string.lower(l)
|
||||||
return "<u>"..l.."</u>"
|
return "<u>"..l.."</u>"
|
||||||
end, 1)
|
end, 1))
|
||||||
-- Set icon if needed
|
-- Set icon if needed
|
||||||
local iconbox
|
local iconbox
|
||||||
local margin = wibox.layout.margin()
|
local margin = wibox.layout.margin()
|
||||||
|
|
Loading…
Reference in New Issue