Merge pull request #2401 from psychon/fix_doc_names

Fix incorrect @name annotation in gears.string
This commit is contained in:
mergify[bot] 2018-09-26 19:18:10 +00:00 committed by GitHub
commit bed42a10ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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. --- Escape a string from XML char.
-- Useful to set raw text in textbox. -- Useful to set raw text in textbox.
-- @class function -- @class function
-- @name escape -- @name xml_escape
-- @param text Text to escape. -- @param text Text to escape.
-- @return Escape text. -- @return Escape text.
function gstring.xml_escape(text) function gstring.xml_escape(text)
@ -21,7 +21,7 @@ local xml_entity_chars = { lt = "<", gt = ">", nbsp = " ", quot = "\"", apos = "
amp = "&" }; amp = "&" };
--- Unescape a string from entities. --- Unescape a string from entities.
-- @class function -- @class function
-- @name unescape -- @name xml_unescape
-- @param text Text to unescape. -- @param text Text to unescape.
-- @return Unescaped text. -- @return Unescaped text.
function gstring.xml_unescape(text) function gstring.xml_unescape(text)