Skip to content

Commit

Permalink
handle nil values
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Mar 22, 2011
1 parent d7ba0a9 commit 02fdda4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/temple/html/fast.rb
Expand Up @@ -51,6 +51,7 @@ def html4?
end

def on_html_doctype(type)
type = type.to_s
trailing_newlines = type[/(\A|[^\r])(\n+)\Z/, 2].to_s
text = type.downcase.strip

Expand Down

0 comments on commit 02fdda4

Please sign in to comment.