Commit 2fb2143d by Amelin Konstantin

Fix empty tag logging

parent 19b39a3e
......@@ -13,7 +13,7 @@ trait Logger {
val items = source \\ "_"
for (i <- items) {
if (i.attributes.nonEmpty || (i.child.length == 1)) {
if (i.attributes.nonEmpty || (i.child.length <= 1)) {
val idx = i.hashCode
val attr: mutable.LinkedHashMap[Int, (String, String)] =
if (i.attributes.nonEmpty) mutable.LinkedHashMap() else null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment