aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/tadoc.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2019-02-16 23:47:30 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2019-02-16 23:47:30 -0500
commit84c449a1ab6f10883aafc5dcc64f32a2eddba4f0 (patch)
tree80d54e8c343ce1f8a23d9e1862e26f5217d90eb1 /modules/lua/tadoc.lua
parent289683eb2044abce8350b8df18580e4d41e072fb (diff)
downloadtextadept-84c449a1ab6f10883aafc5dcc64f32a2eddba4f0.tar.gz
textadept-84c449a1ab6f10883aafc5dcc64f32a2eddba4f0.zip
Fixed escaping of newlines in generated Lua API documentation.
Diffstat (limited to 'modules/lua/tadoc.lua')
-rw-r--r--modules/lua/tadoc.lua2
1 files changed, 1 insertions, 1 deletions
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