Skip to content

Commit

Permalink
STXM-17: Unnecessary line feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik1 authored and dmlloyd committed Feb 15, 2023
1 parent 07afeda commit e1d300e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ public void run(int arg) throws XMLStreamException {
public void writeComment(final String data) throws XMLStreamException {
runAttrQueue();
nl();
nl();
indent();
final StringBuilder b = new StringBuilder(data.length());
final Iterator<String> i = Spliterator.over(data, '\n');
Expand Down Expand Up @@ -427,21 +426,18 @@ public void writeEntityRef(final String name) throws XMLStreamException {
@Override
public void writeStartDocument() throws XMLStreamException {
delegate.writeStartDocument();
nl();
state = START_DOCUMENT;
}

@Override
public void writeStartDocument(final String version) throws XMLStreamException {
delegate.writeStartDocument(version);
nl();
state = START_DOCUMENT;
}

@Override
public void writeStartDocument(final String encoding, final String version) throws XMLStreamException {
delegate.writeStartDocument(encoding, version);
nl();
state = START_DOCUMENT;
}

Expand Down

0 comments on commit e1d300e

Please sign in to comment.