diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-08-04 15:55:56 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-08-04 15:55:56 +0000 |
commit | a0c9b5cb07e4b691874e858527e36cb8c83c56d0 (patch) | |
tree | f198cd9f9ced2e66998aa1db6cbe1c265f03862b /lib/menubuilder.lua | |
parent | df0d2e0e18549e8fe348d08769c929340d75131e (diff) | |
download | acf-core-a0c9b5cb07e4b691874e858527e36cb8c83c56d0.tar.bz2 acf-core-a0c9b5cb07e4b691874e858527e36cb8c83c56d0.tar.xz |
Remove trailing whitespace
Diffstat (limited to 'lib/menubuilder.lua')
-rw-r--r-- | lib/menubuilder.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/menubuilder.lua b/lib/menubuilder.lua index 6bb981f..b4f69ed 100644 --- a/lib/menubuilder.lua +++ b/lib/menubuilder.lua @@ -9,7 +9,7 @@ posix = require("posix") format = require("acf.format") fs = require("acf.fs") --- returns a table of the "*.menu" tables +-- returns a table of the "*.menu" tables -- startdir should be the app dir. local get_candidates = function (startdir) return fs.find_files_as_array(".*%.menu", startdir, true) @@ -80,9 +80,9 @@ mymodule.get_menuitems = function (self) for i = 1,1 do -- loop so break works -- Add the category if nil == reversecats[result.cat] then - table.insert ( cats, - { name=result.cat, - groups = {}, + table.insert ( cats, + { name=result.cat, + groups = {}, reversegroups = {} } ) reversecats[result.cat] = #cats end @@ -165,7 +165,7 @@ mymodule.get_menuitems = function (self) end end end - + -- create new groups for each prefix/controller for con in pairs(group.controllers) do table.insert ( cat.groups, |