aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2012-02-10 13:53:25 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2012-02-10 13:53:25 -0500
commitfbcb4f5c1dcfa2ffa45fb82a3bad2e543ee071e9 (patch)
treefd4b0003cdee00f926b2d741384774428569dd0d /scripts
parent8aaf585693c1ebc4c1f32345d3fad719000b556e (diff)
Preserve LuaDoc formatting using a patch to LuaDoc itself; scripts/luadoc.patch
Thanks to Tymur Gubayev.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/luadoc.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/luadoc.patch b/scripts/luadoc.patch
new file mode 100644
index 00000000..175b5942
--- /dev/null
+++ b/scripts/luadoc.patch
@@ -0,0 +1,22 @@
+--- 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
+