(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:
parent
ca26677cad
commit
6ba0350928
|
@ -2,14 +2,12 @@
|
||||||
|
|
||||||
<% if text -%>
|
<% if text -%>
|
||||||
<%= text %>
|
<%= text %>
|
||||||
|
|
||||||
<% elsif summary -%>
|
<% elsif summary -%>
|
||||||
<%= summary %>
|
<%= summary %>
|
||||||
|
|
||||||
<% else -%>
|
<% else -%>
|
||||||
<%= "The #{name} class." %>
|
<%= "The #{name} class." %>
|
||||||
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<% if since -%>
|
<% if since -%>
|
||||||
* **Since** <%= since %>
|
* **Since** <%= since %>
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,12 @@
|
||||||
|
|
||||||
<% if text -%>
|
<% if text -%>
|
||||||
<%= text %>
|
<%= text %>
|
||||||
|
|
||||||
<% elsif summary -%>
|
<% elsif summary -%>
|
||||||
<%= summary %>
|
<%= summary %>
|
||||||
|
|
||||||
<% else -%>
|
<% else -%>
|
||||||
<%= "The #{name} type." %>
|
<%= "The #{name} type." %>
|
||||||
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
||||||
<% if since -%>
|
<% if since -%>
|
||||||
* **Since** <%= since %>
|
* **Since** <%= since %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue