From 2c147075e434672f94e561b6f96cda726178f936 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Wed, 9 Feb 2022 15:56:53 +0100 Subject: [PATCH] XmlPullUtil: skip whitespace when exiting an element --- src/de/schildbach/pte/util/XmlPullUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/de/schildbach/pte/util/XmlPullUtil.java b/src/de/schildbach/pte/util/XmlPullUtil.java index e8a48fa9..8af19428 100644 --- a/src/de/schildbach/pte/util/XmlPullUtil.java +++ b/src/de/schildbach/pte/util/XmlPullUtil.java @@ -80,6 +80,8 @@ public final class XmlPullUtil { } public static void exit(final XmlPullParser pp, final String tagName) throws XmlPullParserException, IOException { + skipWhitespace(pp); + pp.require(XmlPullParser.END_TAG, null, tagName); pp.next(); }