From 23d7dc4f906fb68aab385a26f507057da9ac1e01 Mon Sep 17 00:00:00 2001 From: REAndroid Date: Thu, 15 Feb 2024 16:44:31 +0100 Subject: [PATCH] [XML] Fix parse span attributes with '=' character REAndroid/APKEditor#88 --- src/main/java/com/reandroid/xml/Span.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/reandroid/xml/Span.java b/src/main/java/com/reandroid/xml/Span.java index 1739dde0d..0bc067f8e 100644 --- a/src/main/java/com/reandroid/xml/Span.java +++ b/src/main/java/com/reandroid/xml/Span.java @@ -42,7 +42,7 @@ default List parseAttributes(String attributes){ boolean quoted = false; for (int i = 0; i < length; i++){ char ch = attributes.charAt(i); - if(ch == '='){ + if(ch == '=' && attribute == null){ if(builder != null){ attribute = new StyleAttribute(builder.toString(), ""); results.add(attribute);