summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-24 14:57:29 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-24 14:57:29 +0000
commit90bd6e0c226ab316643fe0e1ffad2496c0d1948d (patch)
tree14c71dd2b611f736a6190e6d538f2b4392eeaa2a
parent8ca88e4ba817144acf9f81a4f51b8f3836a4d6b4 (diff)
downloadacf-core-90bd6e0c226ab316643fe0e1ffad2496c0d1948d.tar.bz2
acf-core-90bd6e0c226ab316643fe0e1ffad2496c0d1948d.tar.xz
Minor changes on tables
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@636 ab2d0c66-481e-0410-8bed-d214d4d58bed
-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;
}