diff options
Diffstat (limited to 'lib/rdoc/markup/pre_process.rb')
-rw-r--r-- | lib/rdoc/markup/pre_process.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/rdoc/markup/pre_process.rb b/lib/rdoc/markup/pre_process.rb index d7cef36158..6ce523be89 100644 --- a/lib/rdoc/markup/pre_process.rb +++ b/lib/rdoc/markup/pre_process.rb @@ -102,8 +102,6 @@ class RDoc::Markup::PreProcess text = text.text end - encoding = text.encoding if defined?(Encoding) - # regexp helper (square brackets for optional) # $1 $2 $3 $4 $5 # [prefix][\]:directive:[spaces][param]newline @@ -122,7 +120,7 @@ class RDoc::Markup::PreProcess next "#{$1.strip}\n" end - handle_directive $1, $3, $5, code_object, encoding, &block + handle_directive $1, $3, $5, code_object, text.encoding, &block end comment = text unless comment @@ -291,4 +289,3 @@ class RDoc::Markup::PreProcess end end - |