utils: has_yaml_header? should accept files with extraneous spaces

Occasionally, extra spaces at the end of the YAML front matter prologue are
saved to a file and it goes missing without telling the user why. This
should simply accept those changes without any detriment to the user,
allowing anyone to add as many spaces as they like to the end of their
front matter prologues.
This commit is contained in:
Parker Moore
2015-12-27 10:56:47 -05:00
parent 1ea667474b
commit cb5bc1093e
4 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
---
extra: spaces
---