aboutsummaryrefslogtreecommitdiffstats
path: root/util/dataforms.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-10-16 23:00:42 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-10-16 23:00:42 +0500
commitb7e51a203d3d95961294c711ae0d9c449ddb040d (patch)
tree376af083a7225da43a8659f6d0d6184966d10baa /util/dataforms.lua
parent85b44a1dfd59fee9a26527cc759ef72780a1668c (diff)
downloadprosody-b7e51a203d3d95961294c711ae0d9c449ddb040d.tar.gz
prosody-b7e51a203d3d95961294c711ae0d9c449ddb040d.zip
Monster whitespace commit (beware the whitespace monster).
Diffstat (limited to 'util/dataforms.lua')
-rw-r--r--util/dataforms.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 7814ada0..ae745e03 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -126,7 +126,7 @@ function form_t.data(layout, stanza)
return data;
end
-field_readers["text-single"] =
+field_readers["text-single"] =
function (field_tag)
local value = field_tag:child_with_name("value");
if value then
@@ -134,13 +134,13 @@ field_readers["text-single"] =
end
end
-field_readers["text-private"] =
+field_readers["text-private"] =
field_readers["text-single"];
field_readers["jid-single"] =
field_readers["text-single"];
-field_readers["jid-multi"] =
+field_readers["jid-multi"] =
function (field_tag)
local result = {};
for value_tag in field_tag:childtags() do
@@ -151,7 +151,7 @@ field_readers["jid-multi"] =
return result;
end
-field_readers["text-multi"] =
+field_readers["text-multi"] =
function (field_tag)
local result = {};
for value_tag in field_tag:childtags() do
@@ -176,7 +176,7 @@ field_readers["list-multi"] =
return result;
end
-field_readers["boolean"] =
+field_readers["boolean"] =
function (field_tag)
local value = field_tag:child_with_name("value");
if value then
@@ -185,10 +185,10 @@ field_readers["boolean"] =
else
return false;
end
- end
+ end
end
-field_readers["hidden"] =
+field_readers["hidden"] =
function (field_tag)
local value = field_tag:child_with_name("value");
if value then