Skip to content

Commit b9d85b2

Browse files
committed
Remove extra whitespace in HTML header after #205
Update history for #205
1 parent 8bf33d8 commit b9d85b2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

History.rdoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
* Minor enhancements
44
* Added RDoc::Options#output_decoration which controls header labels for
5-
* HTML output. Pull Request #199 by Zachary Scott.
5+
HTML output. Pull Request #199 by Zachary Scott.
6+
* Added --template-stylesheets options to RDoc to allow specification of
7+
alternate stylesheets. Pull request #205 by Zachary Scott.
68
* Improved performance of the Markdown and RD parsers. Pull request #217 by
79
Ryan Davis.
810

lib/rdoc/generator/template/darkfish/_head.rhtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<title><%= h @title %></title>
44

55
<link type="text/css" media="screen" href="<%= asset_rel_prefix %>/rdoc.css" rel="stylesheet">
6-
<% if @options.template_stylesheets.flatten.any? %>
7-
<% @options.template_stylesheets.flatten.each do |stylesheet| %>
8-
<link type="text/css" href="<%= asset_rel_prefix %>/<%= File.basename stylesheet %>" rel="stylesheet">
9-
<% end %>
10-
<% end %>
6+
<% if @options.template_stylesheets.flatten.any? then -%>
7+
<% @options.template_stylesheets.flatten.each do |stylesheet| -%>
8+
<link type="text/css" href="<%= asset_rel_prefix %>/<%= File.basename stylesheet %>" rel="stylesheet">
9+
<% end -%>
10+
<% end -%>
1111

1212
<script type="text/javascript">
1313
var rdoc_rel_prefix = "<%= rel_prefix %>/";

0 commit comments

Comments
 (0)