Albert Villanova del Moral commited on
Commit
55ede10
1 Parent(s): 3db054b

Fix relevant YAML leading blanks (#30)

Browse files
Files changed (1) hide show
  1. build_metadata_file.py +1 -1
build_metadata_file.py CHANGED
@@ -17,7 +17,7 @@ from apputils import new_state
17
 
18
  def metadata_from_readme(f: Path) -> Dict:
19
  with f.open() as fi:
20
- content = [line.strip() for line in fi]
21
 
22
  if content[0] == "---" and "---" in content[1:]:
23
  yamlblock = "\n".join(content[1 : content[1:].index("---") + 1])
 
17
 
18
  def metadata_from_readme(f: Path) -> Dict:
19
  with f.open() as fi:
20
+ content = [line.rstrip() for line in fi]
21
 
22
  if content[0] == "---" and "---" in content[1:]:
23
  yamlblock = "\n".join(content[1 : content[1:].index("---") + 1])