stanzacmp: Check the correct side of the comparsion for whitespace

Tue, 22 Sep 2015 12:04:57 +0200

author
Kim Alvefur <zash@zash.se>
date
Tue, 22 Sep 2015 12:04:57 +0200
changeset 32
0eabed6c91e7
parent 31
52690f37d6bc
child 33
227bc1fe52e9

stanzacmp: Check the correct side of the comparsion for whitespace

scansion/stanzacmp.lua file | annotate | diff | comparison | revisions
--- a/scansion/stanzacmp.lua	Sat Sep 19 21:57:48 2015 +0100
+++ b/scansion/stanzacmp.lua	Tue Sep 22 12:04:57 2015 +0200
@@ -37,7 +37,7 @@
 		if type(child) == "table" or child:match("%S") then
 			local match;
 			local child2 = stanza2[stanza2_pos];
-			while child2 and not(type(child2) == "table" or child:match("%S")) do
+			while child2 and not(type(child2) == "table" or child2:match("%S")) do
 				stanza2_pos = stanza2_pos + 1;
 				child2 = stanza2[stanza2_pos];
 			end

mercurial