diff --git a/src/main/java/com/ctc/wstx/dtd/MinimalDTDReader.java b/src/main/java/com/ctc/wstx/dtd/MinimalDTDReader.java index aa2ee4b..9ff746d 100644 --- a/src/main/java/com/ctc/wstx/dtd/MinimalDTDReader.java +++ b/src/main/java/com/ctc/wstx/dtd/MinimalDTDReader.java @@ -320,8 +320,8 @@ protected void skipCommentContent() if (c == '-') { return; } - if (c == '\n') skipCRLF(c); - } else if (c == '\n' || c == '\r') { + } + if (c == '\n' || c == '\r') { skipCRLF(c); } }