Skip to content

Commit 63b3bad

Browse files
committed
Ignore empty lines in add-from-issue.py
1 parent 99a8680 commit 63b3bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add-from-issue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
author = info_dict["author"]
1414

15-
content_lines = [line.strip() for line in content.decode().replace("`", "").strip().split("\n")]
15+
content_lines = [line.strip() for line in content.decode().replace("`", "").strip().split("\n") if line.strip()]
1616
for i in range(len(content_lines) - 1):
1717
if content_lines[i].lower().startswith("name:") and content_lines[i + 1].lower().startswith("link:"):
1818
if not os.path.isfile(f"_data/signed/{author}.yaml"):

0 commit comments

Comments
 (0)