lib/rdoc/comment.rb in rdoc-5.0.0.beta1 vs lib/rdoc/comment.rb in rdoc-5.0.0.beta2

- old
+ new

@@ -198,11 +198,11 @@ # */ def remove_private # Workaround for gsub encoding for Ruby 1.9.2 and earlier empty = '' - empty.force_encoding @text.encoding if Object.const_defined? :Encoding + empty.force_encoding @text.encoding @text = @text.gsub(%r%^\s*([#*]?)--.*?^\s*(\1)\+\+\n?%m, empty) @text = @text.sub(%r%^\s*[#*]?--.*%m, '') end @@ -225,6 +225,5 @@ def tomdoc? @format == 'tomdoc' end end -