Skip to content

Commit

Permalink
Merge pull request #378 from granddaifuku/master
Browse files Browse the repository at this point in the history
空のマークダウンでdocsを生成しようとした際に落ちる不具合の修正
  • Loading branch information
kmyk authored Mar 6, 2021
2 parents e80503f + f9fc0b4 commit e6cc567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onlinejudge_verify/documentation/front_matter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def _split_front_matter_without_parsing_yaml(content: bytes) -> Tuple[bytes, bytes]:
lines = content.splitlines(keepends=True)
if lines[0].rstrip() != _separator:
if len(lines) == 0 or lines[0].rstrip() != _separator:
return (b'', content)
for i, line in enumerate(lines):
if i == 0:
Expand Down

0 comments on commit e6cc567

Please sign in to comment.