don't fail on empty lines
This commit is contained in:
parent
ff41f79dd8
commit
98d7900fce
@ -112,6 +112,10 @@ namespace EDJournal {
|
|||||||
|
|
||||||
entries.Clear();
|
entries.Clear();
|
||||||
foreach(var line in lines) {
|
foreach(var line in lines) {
|
||||||
|
// Skip empty lines
|
||||||
|
if (line.Trim().Length == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Entry entry = Entry.Parse(line);
|
Entry entry = Entry.Parse(line);
|
||||||
entries.Add(entry);
|
entries.Add(entry);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user