Skip to content

Commit 1e562eb

Browse files
committed
Fixed tests for 1.8
1 parent e12ca93 commit 1e562eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rdoc/generator/darkfish.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,8 @@ def template_for file, page = true, klass = ERB
703703
erbout = 'io'
704704
else
705705
template = file.read
706-
template = template.encode @options.encoding
706+
template = template.encode @options.encoding if
707+
Object.const_defined? :Encoding
707708

708709
file_var = File.basename(file).sub(/\..*/, '')
709710

0 commit comments

Comments
 (0)