aboutsummaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-09 21:46:18 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-09 21:46:18 +0100
commita6a262d769d428013543999079c2766379ec3cab (patch)
treeef4499efb80182b7bf60b5095f4641cd0e180a28 /html.rb
parent9086b9e841bd64beed3003c9d5b3ec98525f2df7 (diff)
bugfix: there may be no css file
Diffstat (limited to 'html.rb')
-rw-r--r--html.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.rb b/html.rb
index e682f21..91e1b4b 100644
--- a/html.rb
+++ b/html.rb
@@ -38,7 +38,7 @@ class HTML
<title>#{@title}</title>
HEAD
- @css = [@css[0]] + @css[1..-1].sort
+ @css = [@css[0]] + @css[1..-1].sort unless @css.empty?
@css.each{|title,href|
ret += "<link rel='stylesheet' type='text/css' href='#{href}' title='#{title}'/>\n"
ret += "<link rel='stylesheet' type='text/css' href='#{href}' title='print' media='print' />\n" if title == "print"