Fix incorrect @name annotation in gears.string

gears.string.xml_escape was annotated with "@name escape" and
gears.string.xml_unescape was annotated with "@name unescape".

Reference: https://github.com/awesomeWM/awesome/issues/2397#issuecomment-424630100
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2018-09-26 10:37:59 +02:00
parent 68e4dd430f
commit 3927dbcf02
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ local xml_entity_names = { ["'"] = "&apos;", ["\""] = "&quot;", ["<"] = "&lt;",
--- Escape a string from XML char.
-- Useful to set raw text in textbox.
-- @class function
-- @name escape
-- @name xml_escape
-- @param text Text to escape.
-- @return Escape text.
function gstring.xml_escape(text)
@ -21,7 +21,7 @@ local xml_entity_chars = { lt = "<", gt = ">", nbsp = " ", quot = "\"", apos = "
amp = "&" };
--- Unescape a string from entities.
-- @class function
-- @name unescape
-- @name xml_unescape
-- @param text Text to unescape.
-- @return Unescaped text.
function gstring.xml_unescape(text)