Skip to content

Commit

Permalink
Fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkorstanje committed Apr 13, 2024
1 parent a911caa commit a659bd6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dotnet/Gherkin/GherkinLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ private IEnumerable<Tuple<string, int>> SplitCells(string row)
startPos = pos;
} else if (c == GherkinLanguageConstants.TABLE_CELL_ESCAPE_CHAR) {
bool hasNext = rowEnum.MoveNext();
if(hasNext) {
pos++;
pos++;
if(!hasNext) {
cell += GherkinLanguageConstants.TABLE_CELL_ESCAPE_CHAR;
} else {
c = rowEnum.Current;
if (c == GherkinLanguageConstants.TABLE_CELL_NEWLINE_ESCAPE) {
cell += "\n";
Expand All @@ -137,8 +139,6 @@ private IEnumerable<Tuple<string, int>> SplitCells(string row)
}
cell += c;
}
} else {
cell += GherkinLanguageConstants.TABLE_CELL_ESCAPE_CHAR;
}
} else {
cell += c;
Expand Down

0 comments on commit a659bd6

Please sign in to comment.