Commit b5aea058 authored by Jos van den Oever's avatar Jos van den Oever

Indent comments too where indentation is allowed.

parent 612e5733
......@@ -108,6 +108,9 @@ class PrettyPrinter implements XMLStreamWriter {
@Override
public void writeComment(@Nullable String data) throws XMLStreamException {
startElement();
if (stack.size() == 0 || stack.peek()) {
indent();
}
out.writeComment(data);
}
......
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