From 29d1b473f8703ec83a953c6b5376b190319a54fa Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 24 Mar 2014 01:01:41 +0100 Subject: [PATCH] Fix doc for textbox:set_markup --- lib/wibox/widget/textbox.lua.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/wibox/widget/textbox.lua.in b/lib/wibox/widget/textbox.lua.in index 4ebd31ad0..17bc85312 100644 --- a/lib/wibox/widget/textbox.lua.in +++ b/lib/wibox/widget/textbox.lua.in @@ -53,8 +53,10 @@ function textbox:fit(width, height) return logical.width, logical.height end ---- Set a textbox' text. --- @param text The text to set. This can contain pango markup (e.g. bold) +--- Set the text of the textbox (with Pango markup). +-- @param text The text to set. This can contain pango markup (e.g. +--
bold
). You can use awful.util.escape to escape +-- parts of it. function textbox:set_markup(text) local attr, parsed = Pango.parse_markup(text, -1, 0) -- In case of error, attr is false and parsed is an error message