Skip to content

Commit

Permalink
Fix conversion error on md file with leading whitespace
Browse files Browse the repository at this point in the history
Former-commit-id: 9e56247
  • Loading branch information
josh-heyer committed May 20, 2021
1 parent 27d4a95 commit 4fd2d0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
title: 'Monitoring Instances'
originalFilePath: 'src/monitoring.md'
Expand Down
4 changes: 4 additions & 0 deletions scripts/source/source_cloud_native_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ def process_md(file_path):
if new_file_path.name == "index.mdx"
else "",
)
elif not line.strip():
line = ""
else:
print("File does not begin with title - frontmatter will not be valid: " + file_path)

new_file.write(line)

Expand Down

0 comments on commit 4fd2d0d

Please sign in to comment.