doc: fix markup with wibox.widget.textbox:set_markup
This commit is contained in:
parent
1b6564f209
commit
ffa535ca29
|
@ -55,8 +55,8 @@ end
|
||||||
|
|
||||||
--- Set the text of the textbox (with Pango markup).
|
--- Set the text of the textbox (with Pango markup).
|
||||||
-- @param text The text to set. This can contain pango markup (e.g.
|
-- @param text The text to set. This can contain pango markup (e.g.
|
||||||
-- <pre><b>bold</b></pre>). You can use awful.util.escape to escape
|
-- `<b>bold</b>`). You can use awful.util.escape to escape
|
||||||
-- parts of it.
|
-- parts of it.
|
||||||
function textbox:set_markup(text)
|
function textbox:set_markup(text)
|
||||||
local attr, parsed = Pango.parse_markup(text, -1, 0)
|
local attr, parsed = Pango.parse_markup(text, -1, 0)
|
||||||
-- In case of error, attr is false and parsed is an error message
|
-- In case of error, attr is false and parsed is an error message
|
||||||
|
|
Loading…
Reference in New Issue