aboutsummaryrefslogtreecommitdiff
path: root/src/luadoc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/luadoc.patch')
-rw-r--r--src/luadoc.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/luadoc.patch b/src/luadoc.patch
new file mode 100644
index 00000000..e0dae6a2
--- /dev/null
+++ b/src/luadoc.patch
@@ -0,0 +1,23 @@
+Preserve some formatting for Lua API documentation in Textadept.
+--- luadoc/util.lua.orig 2012-02-10 13:34:46.166184400 -0500
++++ luadoc/util.lua 2012-02-10 13:36:59.847551200 -0500
+@@ -29,8 +29,8 @@
+ -- @see string.gsub
+
+ function trim_comment (s)
+- s = string.gsub(s, "%-%-+(.*)$", "%1")
+- return trim(s)
++ s = string.gsub(s, "%-%-+ ?(.*)$", "%1")
++ return s
+ end
+
+ -------------------------------------------------------------------------------
+@@ -52,7 +52,7 @@
+ if str1 == nil or string.len(str1) == 0 then
+ return str2
+ else
+- return str1 .. " " .. str2
++ return str1 .. "\n" .. str2
+ end
+ end
+