From 129d390ecf9c0433265c9350b5d6fd6e8e8625c5 Mon Sep 17 00:00:00 2001
From: Lars Trieloff <trieloff@adobe.com>
Date: Wed, 13 Dec 2017 20:31:13 +0000
Subject: [PATCH] [trivial] fix frontmatter spacing

---
 examples/docs/abstract.schema.md      | 2 +-
 examples/docs/custom.schema.md        | 1 -
 examples/docs/deepextending.schema.md | 1 -
 examples/docs/definitions.schema.md   | 1 -
 examples/docs/example.schema.md       | 1 -
 examples/docs/extending.schema.md     | 1 -
 examples/docs/extensible.schema.md    | 1 -
 examples/docs/simple.schema.md        | 1 -
 examples/docs/subdir/subdir.schema.md | 1 -
 templates/md/frontmatter.ejs          | 4 +---
 10 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/examples/docs/abstract.schema.md b/examples/docs/abstract.schema.md
index 8419fae..62e2820 100644
--- a/examples/docs/abstract.schema.md
+++ b/examples/docs/abstract.schema.md
@@ -15,4 +15,4 @@ This is an abstract schema. It has `definitions`, but does not declare any prope
 |----------|------------|-------------------|------------|
 | Cannot be instantiated | Yes | Forbidden | [abstract.schema.json](abstract.schema.json) |
 
----
+---
\ No newline at end of file
diff --git a/examples/docs/custom.schema.md b/examples/docs/custom.schema.md
index 9a4bc1c..dfbd694 100644
--- a/examples/docs/custom.schema.md
+++ b/examples/docs/custom.schema.md
@@ -1,4 +1,3 @@
-
 ---
 template: reference
 foo: bar
diff --git a/examples/docs/deepextending.schema.md b/examples/docs/deepextending.schema.md
index ce410cf..b2c294b 100644
--- a/examples/docs/deepextending.schema.md
+++ b/examples/docs/deepextending.schema.md
@@ -1,4 +1,3 @@
-
 ---
 template: reference
 foo: bar
diff --git a/examples/docs/definitions.schema.md b/examples/docs/definitions.schema.md
index b96fbda..5c6c6fa 100644
--- a/examples/docs/definitions.schema.md
+++ b/examples/docs/definitions.schema.md
@@ -1,4 +1,3 @@
-
 ---
 template: reference
 foo: bar
diff --git a/examples/docs/example.schema.md b/examples/docs/example.schema.md
index 9b5260f..ce44767 100644
--- a/examples/docs/example.schema.md
+++ b/examples/docs/example.schema.md
@@ -1,4 +1,3 @@
-
 ---
 template: reference
 foo: bar
diff --git a/examples/docs/extending.schema.md b/examples/docs/extending.schema.md
index b64a706..935f93d 100644
--- a/examples/docs/extending.schema.md
+++ b/examples/docs/extending.schema.md
@@ -1,4 +1,3 @@
-
 ---
 template: reference
 foo: bar
diff --git a/examples/docs/extensible.schema.md b/examples/docs/extensible.schema.md
index 8073e9f..922838d 100644
--- a/examples/docs/extensible.schema.md
+++ b/examples/docs/extensible.schema.md
@@ -1,4 +1,3 @@
-
 ---
 template: reference
 foo: bar
diff --git a/examples/docs/simple.schema.md b/examples/docs/simple.schema.md
index 20ef824..d424f94 100644
--- a/examples/docs/simple.schema.md
+++ b/examples/docs/simple.schema.md
@@ -1,4 +1,3 @@
-
 ---
 template: reference
 foo: bar
diff --git a/examples/docs/subdir/subdir.schema.md b/examples/docs/subdir/subdir.schema.md
index a8f3786..a56f842 100644
--- a/examples/docs/subdir/subdir.schema.md
+++ b/examples/docs/subdir/subdir.schema.md
@@ -1,4 +1,3 @@
-
 ---
 template: reference
 foo: bar
diff --git a/templates/md/frontmatter.ejs b/templates/md/frontmatter.ejs
index ebea136..5b0b902 100644
--- a/templates/md/frontmatter.ejs
+++ b/templates/md/frontmatter.ejs
@@ -3,9 +3,7 @@
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License. You may obtain a copy
  * of the License at http://www.apache.org/licenses/LICENSE-2.0
- */ %>
-<% if (meta) { %>
----
+ */ %><% if (meta) { %>---
 <%  _.forIn(meta, (value, key, object) => { %>
 <%= key %>: <%= value %>
 <% }); %>
-- 
GitLab