src/XMLDocumentConstructor.h
branchv_0
changeset 41 b11458587f20
parent 40 503b77beed57
child 42 c97b6152016a
--- a/src/XMLDocumentConstructor.h	Tue Jun 08 22:34:11 2021 +0200
+++ b/src/XMLDocumentConstructor.h	Thu Jun 10 01:23:36 2021 +0200
@@ -180,7 +180,7 @@
 		mode.pop_back();
 		remainingItems.pop_back();
 
-		if (m == Mode::MAP_KEY || m == Mode::MAP_VALUE) current = parentOrSelf(current);
+		if (m == Mode::MAP_KEY || m == Mode::MAP_VALUE || m == Mode::ARRAY) current = parentOrSelf(current);
 		else if (m == Mode::BYTE_STRING) flushCurrentIndefiniteString("byte-string");
 		else if (m == Mode::CHAR_STRING) flushCurrentIndefiniteString("string");
 	}