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