Skip to content

Commit e6cc567

Browse files
authored
Merge pull request #378 from granddaifuku/master
空のマークダウンでdocsを生成しようとした際に落ちる不具合の修正
2 parents e80503f + f9fc0b4 commit e6cc567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onlinejudge_verify/documentation/front_matter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
def _split_front_matter_without_parsing_yaml(content: bytes) -> Tuple[bytes, bytes]:
99
lines = content.splitlines(keepends=True)
10-
if lines[0].rstrip() != _separator:
10+
if len(lines) == 0 or lines[0].rstrip() != _separator:
1111
return (b'', content)
1212
for i, line in enumerate(lines):
1313
if i == 0:

0 commit comments

Comments
 (0)