From 05717026b7922f5ba02004e0643cfb23e77abb05 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 13 Mar 2017 03:40:21 -0400 Subject: [PATCH] menubar: Fix a typo in the code Find/replace error when porting the deprecated code Regression from 2f105eac860d19c186b05a60417a1944e917e1b3 Fix #1652 See #1072 --- lib/menubar/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 044724e03..442fd99b0 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -306,7 +306,7 @@ end -- @tparam number|screen s Screen -- @treturn int Text width. function utils.compute_text_width(text, s) - return utils.compute_textbox_width(wibox.widget.textbox(gstring.escape(text)), s) + return utils.compute_textbox_width(wibox.widget.textbox(gstring.xml_escape(text)), s) end return utils