Skip to content

Commit

Permalink
[XML] Fix parse span attributes with '=' character
Browse files Browse the repository at this point in the history
  • Loading branch information
REAndroid committed Feb 15, 2024
1 parent 5a4bd05 commit 23d7dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/reandroid/xml/Span.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ default List<StyleAttribute> 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);
Expand Down

0 comments on commit 23d7dc4

Please sign in to comment.