don't fail on empty lines

This commit is contained in:
Florian Stinglmayr 2022-01-22 13:19:58 +01:00
parent ff41f79dd8
commit 98d7900fce

View File

@ -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);
} }