Skip to content

Commit

Permalink
Comment out empty if-block; reset checkLF
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 12, 2024
1 parent 3ab5ac5 commit ac02346
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -832,13 +832,20 @@ protected String _nextQuotedString() throws IOException
_owner._reportParsingError("Missing closing quote for value"); // should indicate start position?
}
ptr = _inputPtr;
if (checkLF && inputBuffer[ptr] == '\n') {
// undo earlier advancement, to keep line number correct
--_currInputRow;
if (checkLF) {
checkLF = false; // better reset
if (inputBuffer[ptr] == '\n') {
// undo earlier advancement, to keep line number correct
--_currInputRow;
}
}
}
// 11-Feb-2024, tatu: Not quite sure what was supposed to happen here;
// but nothing was done. Leaving for now, remove from 2.18 or later
/*
if (checkLF) { // had a "hanging" CR in parse loop; check now
}
*/
if (outPtr >= outBuf.length) {
outBuf = _textBuffer.finishCurrentSegment();
outPtr = 0;
Expand Down

0 comments on commit ac02346

Please sign in to comment.