Skip to content

Commit 79b09fe

Browse files
committed
Fix compile
1 parent a659bd6 commit 79b09fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dotnet/Gherkin/GherkinLine.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,8 @@ private IEnumerable<Tuple<string, int>> SplitCells(string row)
126126
startPos = pos;
127127
} else if (c == GherkinLanguageConstants.TABLE_CELL_ESCAPE_CHAR) {
128128
bool hasNext = rowEnum.MoveNext();
129-
pos++;
130-
if(!hasNext) {
131-
cell += GherkinLanguageConstants.TABLE_CELL_ESCAPE_CHAR;
132-
} else {
129+
if(hasNext) {
130+
pos++;
133131
c = rowEnum.Current;
134132
if (c == GherkinLanguageConstants.TABLE_CELL_NEWLINE_ESCAPE) {
135133
cell += "\n";
@@ -139,6 +137,8 @@ private IEnumerable<Tuple<string, int>> SplitCells(string row)
139137
}
140138
cell += c;
141139
}
140+
} else {
141+
cell += GherkinLanguageConstants.TABLE_CELL_ESCAPE_CHAR;
142142
}
143143
} else {
144144
cell += c;

0 commit comments

Comments
 (0)