Commit 5b44cd64 authored by Barry Warsaw's avatar Barry Warsaw

_parsegen(): Watch out for empty epilogues.

parent 2e7c8328
...@@ -365,6 +365,7 @@ class FeedParser: ...@@ -365,6 +365,7 @@ class FeedParser:
# Any CRLF at the front of the epilogue is not technically part of # Any CRLF at the front of the epilogue is not technically part of
# the epilogue. Also, watch out for an empty string epilogue, # the epilogue. Also, watch out for an empty string epilogue,
# which means a single newline. # which means a single newline.
if epilogue:
firstline = epilogue[0] firstline = epilogue[0]
bolmo = NLCRE_bol.match(firstline) bolmo = NLCRE_bol.match(firstline)
if bolmo: if bolmo:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment