From 132e8757bc800d51058e3e1e4d2d73a0279ca0ac Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Tue, 10 May 2011 22:46:44 +0930 Subject: Remove trailing whitespace --- tests/common.lua | 2 +- tests/test.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/common.lua b/tests/common.lua index 48b4197..156f882 100644 --- a/tests/common.lua +++ b/tests/common.lua @@ -31,7 +31,7 @@ end function serialise_table(value, indent, depth) local spacing, spacing2, indent2 - if indent then + if indent then spacing = "\n" .. indent spacing2 = spacing .. " " indent2 = indent .. " " diff --git a/tests/test.lua b/tests/test.lua index 4bb62be..bfa4f66 100755 --- a/tests/test.lua +++ b/tests/test.lua @@ -43,7 +43,7 @@ local function gen_utf16_escaped() end end table.insert(utf16_escaped, '"') - + return table.concat(utf16_escaped) end @@ -120,10 +120,10 @@ local encode_table_tests = { true, { '[null,null,"sparse test"]' } }, { json.encode, { { [1] = "one", [4] = "sparse test" } }, - true, { '["one",null,null,"sparse test"]' } }, + true, { '["one",null,null,"sparse test"]' } }, { json.encode, { { [1] = "one", [5] = "sparse test" } }, - true, { '{"1":"one","5":"sparse test"}' } }, + true, { '{"1":"one","5":"sparse test"}' } }, { json.encode, { nested5 }, true, { '[[[[["nested"]]]]]' } }, { json.encode, { { nested5 } }, -- cgit v1.2.3-55-g6feb