Sha256: 2453ed087f563016be830520870b5d8598c37564a93dc86462ff1c20ada84894
Contents?: true
Size: 572 Bytes
Versions: 2
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true require 'pdf/core/text' require 'prawn/rtl/support/version' require 'prawn/rtl/connector' module Prawn module Rtl module Support module PrawnTextPatch def original_text super.map do |h| if h.key?(:text) h[:text] = Prawn::Rtl::Connector.fix_rtl(h[:text]) end h end end end end end end module Prawn module Text module Formatted class Box prepend Prawn::Rtl::Support::PrawnTextPatch end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prawn-rtl-support-0.1.6 | lib/prawn/rtl/support.rb |
prawn-rtl-support-0.1.5 | lib/prawn/rtl/support.rb |