Handle cases of course file ending in an empty line / comment
This commit is contained in:
parent
fef2012961
commit
a732620888
1 changed files with 5 additions and 1 deletions
|
@ -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(';')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue