summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/getopts.lua6
-rw-r--r--www/ice/ice.css4
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/getopts.lua b/lib/getopts.lua
index 84a8fa8..4aa433c 100644
--- a/lib/getopts.lua
+++ b/lib/getopts.lua
@@ -38,7 +38,7 @@ function opts_to_table ( optstring, filter )
local option = ""
local optvalue = ""
for j = 1, string.len(optstr) do
- if (string.sub(optstr, j, j) == " -") then
+ if (string.sub(optstr, j, j) == "-") then
option=string.sub(optstr, j, j+1)
if not (filter) or (filter == option) then
for k = j+1, string.len(optstr) do
@@ -46,11 +46,11 @@ function opts_to_table ( optstring, filter )
optsparams = {}
end
if (string.sub(optstr, k, k) == "-") then
- optsparams[option] = string.match(string.sub(optstr, j+2, k-1),"^%s*(.*)%s?")
+ optsparams[option] = string.match(string.sub(optstr, j+2, k-1),"^%s*(.-)%s*$")
break
end
if (k == string.len(optstr)) then
- optsparams[option] = string.match(string.sub(optstr, j+2, k),"^%s*(.*)%s?")
+ optsparams[option] = string.match(string.sub(optstr, j+2, k),"^%s*(.-)%s*$")
break
end
end
diff --git a/www/ice/ice.css b/www/ice/ice.css
index f26e9be..54384b5 100644
--- a/www/ice/ice.css
+++ b/www/ice/ice.css
@@ -348,6 +348,10 @@ body {
#content p,input.text,select,textarea,table {
width: 99%;
}
+#content table {
+ margin: 5px;
+ margin-top: 0px;
+}
#content textarea {
height: 300px;
}