We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e80503f + 51f7d28 commit f9fc0b4Copy full SHA for f9fc0b4
onlinejudge_verify/documentation/front_matter.py
@@ -7,7 +7,7 @@
7
8
def _split_front_matter_without_parsing_yaml(content: bytes) -> Tuple[bytes, bytes]:
9
lines = content.splitlines(keepends=True)
10
- if lines[0].rstrip() != _separator:
+ if len(lines) == 0 or lines[0].rstrip() != _separator:
11
return (b'', content)
12
for i, line in enumerate(lines):
13
if i == 0:
0 commit comments