summaryrefslogtreecommitdiff
path: root/tests/indent/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/common.lua')
-rw-r--r--tests/indent/common.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/indent/common.lua b/tests/indent/common.lua
index 054ffaac..c9f91214 100644
--- a/tests/indent/common.lua
+++ b/tests/indent/common.lua
@@ -14,7 +14,7 @@ local function same_indent(state, arguments)
local ok = true
local errors = { before = {}, after = {} }
for line = 1, #before do
- if before[line] ~= after[line] then
+ if #string.match(before[line], "^%s*") ~= #string.match(after[line], "^%s*") then
if before[line] and after[line] then
-- store the actual indentation length for each line
errors.before[line] = #string.match(before[line], "^%s*")