Skip to content

Commit

Permalink
Reuse the writeAttribute method in writeAttributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Ekryd authored and FilipJirsak committed Jan 22, 2023
1 parent e1ca347 commit b4fea99
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/org/dom4j/io/XMLWriter.java
Expand Up @@ -1482,13 +1482,7 @@ protected void writeAttributes(Element element) throws IOException {
writeNamespace(null, uri);
}
} else {
char quote = format.getAttributeQuoteCharacter();
writer.write(" ");
writer.write(attribute.getQualifiedName());
writer.write("=");
writer.write(quote);
writeEscapeAttributeEntities(attribute.getValue());
writer.write(quote);
writeAttribute(attribute);
}
}
}
Expand Down

0 comments on commit b4fea99

Please sign in to comment.