(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.
This commit is contained in:
John Lyman 2018-03-16 13:42:21 +00:00
parent ca26677cad
commit 6ba0350928
2 changed files with 2 additions and 6 deletions

View File

@ -2,14 +2,12 @@
<% if text -%>
<%= text %>
<% elsif summary -%>
<%= summary %>
<% else -%>
<%= "The #{name} class." %>
<% end -%>
<% if since -%>
* **Since** <%= since %>

View File

@ -2,14 +2,12 @@
<% if text -%>
<%= text %>
<% elsif summary -%>
<%= summary %>
<% else -%>
<%= "The #{name} type." %>
<% end -%>
<% if since -%>
* **Since** <%= since %>