From 0049131c1b1d2c619263e56ae555e305fb73742a Mon Sep 17 00:00:00 2001
From: Andreas Deuschlinger <andreas.deuschlinger@gmail.com>
Date: Wed, 23 May 2018 16:04:37 +0200
Subject: [PATCH] should fix gap

---
 examples/docs/arrays.schema.md    | 6 ------
 examples/docs/complex.schema.md   | 1 -
 templates/md/nested-property.ejs  | 3 +--
 templates/md/pattern-property.ejs | 3 +--
 4 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/examples/docs/arrays.schema.md b/examples/docs/arrays.schema.md
index 9392a71..74c7371 100644
--- a/examples/docs/arrays.schema.md
+++ b/examples/docs/arrays.schema.md
@@ -37,7 +37,6 @@ This is an array
 * is optional
 * type: `boolean[]`
 * at least `1` items in the array
-
 * defined in this schema
 
 ### boollist Type
@@ -62,7 +61,6 @@ This is an array of coordinates in three-dimensional space.
 * is optional
 * type: `number[][]` (nested array)
 * no more than `10` items in the array
-
 * defined in this schema
 
 ### coordinatelist Type
@@ -97,7 +95,6 @@ This is an array
 * is optional
 * type: `integer[]`
 * between `1` and `10` items in the array
-
 * defined in this schema
 
 ### intlist Type
@@ -174,7 +171,6 @@ This is an array
 * is optional
 * type: `number[]`
 * no more than `10` items in the array
-
 * defined in this schema
 
 ### numlist Type
@@ -227,7 +223,6 @@ The a property
 * is **required**
 * type: `string`
 
-
 ##### a Type
 
 
@@ -248,7 +243,6 @@ The b property
 * is optional
 * type: `integer`
 
-
 ##### b Type
 
 
diff --git a/examples/docs/complex.schema.md b/examples/docs/complex.schema.md
index d351757..210a456 100644
--- a/examples/docs/complex.schema.md
+++ b/examples/docs/complex.schema.md
@@ -132,7 +132,6 @@ A unique identifier given to every addressable thing.
 * is optional
 * type: `string`
 
-
 ##### foo Type
 
 
diff --git a/templates/md/nested-property.ejs b/templates/md/nested-property.ejs
index 866a081..9d57b1e 100644
--- a/templates/md/nested-property.ejs
+++ b/templates/md/nested-property.ejs
@@ -18,8 +18,7 @@
 <%   if (schema.maxItems!==undefined&&schema.minItems!==undefined) { %>* between `<%=schema.minItems %>` and `<%=schema.maxItems %>` items in the array<% } 
 else if (schema.maxItems!==undefined                             ) { %>* no more than `<%=schema.maxItems %>` items in the array<% }
 else if (schema.minItems!==undefined                             ) { %>* at least `<%=schema.minItems %>` items in the array<% } %>
-<% } %>
-<% if (schema.default!==undefined) { %>
+<% } %><% if (schema.default!==undefined) { %>
 * default: `<%= JSON.stringify(schema.default) %>`
 <% } %>
 
diff --git a/templates/md/pattern-property.ejs b/templates/md/pattern-property.ejs
index 8934ffc..923da0c 100644
--- a/templates/md/pattern-property.ejs
+++ b/templates/md/pattern-property.ejs
@@ -21,8 +21,7 @@ Applies to all properties that match the regular expression `<%=name %>`
 <%   if (schema.maxItems!==undefined&&schema.minItems!==undefined) { %>* between `<%=schema.minItems %>` and `<%=schema.maxItems %>` items in the array<% } 
 else if (schema.maxItems!==undefined                             ) { %>* no more than `<%=schema.maxItems %>` items in the array<% }
 else if (schema.minItems!==undefined                             ) { %>* at least `<%=schema.minItems %>` items in the array<% } %>
-<% } %>
-<% if (schema.default!==undefined) { %>
+<% } %><% if (schema.default!==undefined) { %>
 * default: `<%= JSON.stringify(schema.default) %>`
 <% } %>
 * defined in <% if (schema.$oSchema) { %>[<%= schema.$oSchema.$linkVal %>](<%= schema.$oSchema.$linkPath %>#<%= name %>)<% } else { %>this schema<% } %>
-- 
GitLab