Skip to content

Commit

Permalink
Remove trailing mdash from options listing if no description is present
Browse files Browse the repository at this point in the history
Closes lsegal#522
  • Loading branch information
lsegal committed May 1, 2012
1 parent 0ff23d8 commit e449d76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/default/tags/html/option.erb
Expand Up @@ -14,7 +14,9 @@
<%= tag.pair.defaults.map {|t| "<tt>#{h t}</tt>" }.join(", ") %>
<% end %>
</span>
<%= "&mdash; " + htmlify_line(tag.pair.text) if tag.pair.text %>
<% if tag.pair.text && tag.pair.text =~ /\S/ %>
&mdash; <%= htmlify_line(tag.pair.text) %>
<% end %>
</li>
<% end %>
</ul>
Expand Down

0 comments on commit e449d76

Please sign in to comment.