From 84c449a1ab6f10883aafc5dcc64f32a2eddba4f0 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 16 Feb 2019 23:47:30 -0500 Subject: Fixed escaping of newlines in generated Lua API documentation. --- modules/lua/tadoc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/lua/tadoc.lua') diff --git a/modules/lua/tadoc.lua b/modules/lua/tadoc.lua index 6cd6983c..b964523c 100644 --- a/modules/lua/tadoc.lua +++ b/modules/lua/tadoc.lua @@ -104,7 +104,7 @@ local function write_apidoc(file, m, b) end end -- Format the block documentation. - doc = table.concat(doc, '\n'):gsub('\n', '\\n') + doc = table.concat(doc, '\n'):gsub('\\n', '\\\\n'):gsub('\n', '\\n') file[#file + 1] = name:match('[^%.:]+$')..' '..doc end -- cgit v1.2.3