mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
require newline after start of yaml header
This commit is contained in:
@@ -374,7 +374,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def has_yaml_header?(file)
|
||||
"---" == File.open(file) { |fd| fd.read(3) }
|
||||
"---\n" == File.open(file) { |fd| fd.read(4) }
|
||||
end
|
||||
|
||||
def limit_posts!
|
||||
|
||||
Reference in New Issue
Block a user