diff --git a/lukkari/parse_coursefile.py b/lukkari/parse_coursefile.py index e3efe72..b4d32a3 100644 --- a/lukkari/parse_coursefile.py +++ b/lukkari/parse_coursefile.py @@ -122,7 +122,11 @@ def parse(text): length = len(text) courses = [] - while not eof(): + while True: + skip_whitespace() + if eof(): + break + name = read_field() match(';')