From 6ba035092829ec42d94dcdee0684aa47711998e3 Mon Sep 17 00:00:00 2001 From: John Lyman Date: Fri, 16 Mar 2018 13:42:21 +0000 Subject: [PATCH] (PDOC-233) Simplify logic for white space formatting of summary Instead of specifying white space after each conditional, just add a blank line at the end of the conditional similar to the `function.erb` template. --- lib/puppet-strings/markdown/templates/classes_and_defines.erb | 4 +--- lib/puppet-strings/markdown/templates/resource_type.erb | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/puppet-strings/markdown/templates/classes_and_defines.erb b/lib/puppet-strings/markdown/templates/classes_and_defines.erb index aa89832..cc8c76e 100644 --- a/lib/puppet-strings/markdown/templates/classes_and_defines.erb +++ b/lib/puppet-strings/markdown/templates/classes_and_defines.erb @@ -2,14 +2,12 @@ <% if text -%> <%= text %> - <% elsif summary -%> <%= summary %> - <% else -%> <%= "The #{name} class." %> - <% end -%> + <% if since -%> * **Since** <%= since %> diff --git a/lib/puppet-strings/markdown/templates/resource_type.erb b/lib/puppet-strings/markdown/templates/resource_type.erb index 1feb202..9c9a045 100644 --- a/lib/puppet-strings/markdown/templates/resource_type.erb +++ b/lib/puppet-strings/markdown/templates/resource_type.erb @@ -2,14 +2,12 @@ <% if text -%> <%= text %> - <% elsif summary -%> <%= summary %> - <% else -%> <%= "The #{name} type." %> - <% end -%> + <% if since -%> * **Since** <%= since %>