From e650f14d2490b050fad88bd519d7a3e4871c93f6 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 19 May 2018 16:28:15 -0500 Subject: [PATCH] Lua functions docs to wiki - escape braces on optional params --- BizHawk.Client.Common/lua/LuaDocumentation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.Client.Common/lua/LuaDocumentation.cs b/BizHawk.Client.Common/lua/LuaDocumentation.cs index 9487336989..c52c4316fb 100644 --- a/BizHawk.Client.Common/lua/LuaDocumentation.cs +++ b/BizHawk.Client.Common/lua/LuaDocumentation.cs @@ -59,7 +59,7 @@ __Types and notation__ sb .AppendFormat("__{0}.{1}__%%%", func.Library, func.Name) .AppendLine().AppendLine() - .AppendFormat("* {0} {1}.{2}{3}", func.ReturnType, func.Library, func.Name, func.ParameterList) + .AppendFormat("* {0} {1}.{2}{3}", func.ReturnType, func.Library, func.Name, func.ParameterList.Replace("[", "[[").Replace("]", "]]")) .AppendLine().AppendLine() .AppendFormat("* {0}", func.Description) .AppendLine().AppendLine();