Ignore empty lines in add-from-issue.py

revert-4113-patch-1
Ivanq 4 years ago
parent 99a8680788
commit 63b3bad4be
  1. 2
      add-from-issue.py

@ -12,7 +12,7 @@ for info, content in zip(parts[::2], parts[1::2]):
author = info_dict["author"] author = info_dict["author"]
content_lines = [line.strip() for line in content.decode().replace("`", "").strip().split("\n")] content_lines = [line.strip() for line in content.decode().replace("`", "").strip().split("\n") if line.strip()]
for i in range(len(content_lines) - 1): for i in range(len(content_lines) - 1):
if content_lines[i].lower().startswith("name:") and content_lines[i + 1].lower().startswith("link:"): if content_lines[i].lower().startswith("name:") and content_lines[i + 1].lower().startswith("link:"):
if not os.path.isfile(f"_data/signed/{author}.yaml"): if not os.path.isfile(f"_data/signed/{author}.yaml"):

Loading…
Cancel
Save