lib/prawn/text/formatted/arranger.rb in prawn-0.13.0 vs lib/prawn/text/formatted/arranger.rb in prawn-0.13.1
- old
+ new
@@ -50,14 +50,10 @@
def line
if @unfinalized_line
raise "Lines must be finalized before calling #line"
end
@fragments.collect do |fragment|
- if ruby_18 { true }
- fragment.text
- else
- fragment.text.dup.force_encoding("utf-8")
- end
+ fragment.text.dup.force_encoding(::Encoding::UTF_8)
end.join
end
def finalize_line
@unfinalized_line = false