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