prawn-rtl-support 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/lib/prawn/rtl/support.rb +3 -3
- data/lib/prawn/rtl/support/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7377ed9d1fc3efd5e3379b5c032e0b7418c7d1c8
|
4
|
+
data.tar.gz: 8b88073aa4b6b0cdd29a0a4accb208614163dfbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 763b806afc19cdc81b79e52c7fd6afe4831a1193d502aa5607daed85b16d759ef8a9e26d2e66e01b4fa57d4ac01a3041e4cab17d7df8bef4c084c77217ffe7b5
|
7
|
+
data.tar.gz: e888d74ffd0e16e0a679cd853cfa6f997a6b70b32faf353e568543bb444a020bedcb37605259e4fe525e20a37daaf0e0c9c201a4fce473ae8abf1a25d0ba78f0
|
data/.gitignore
CHANGED
data/lib/prawn/rtl/support.rb
CHANGED
@@ -7,7 +7,7 @@ module PrawnPatch
|
|
7
7
|
def array_from_tokens(tokens)
|
8
8
|
super.map do |record|
|
9
9
|
if record.include?(:text)
|
10
|
-
record[:text] = Prawn::Rtl::Connector(record[:text])
|
10
|
+
record[:text] = Prawn::Rtl::Connector.fix_rtl(record[:text])
|
11
11
|
end
|
12
12
|
record
|
13
13
|
end
|
@@ -39,7 +39,7 @@ module Prawn
|
|
39
39
|
options.delete(:inline_format)
|
40
40
|
array = text_formatter.format(string, *p)
|
41
41
|
else
|
42
|
-
array = [{ text: Prawn::Rtl::Connector(string) }]
|
42
|
+
array = [{ text: Prawn::Rtl::Connector.fix_rtl(string) }]
|
43
43
|
end
|
44
44
|
|
45
45
|
formatted_text(array, options)
|
@@ -47,7 +47,7 @@ module Prawn
|
|
47
47
|
|
48
48
|
class Box
|
49
49
|
def initialize(string, options = {})
|
50
|
-
super([{ text: Prawn::Rtl::Connector(string) }], options)
|
50
|
+
super([{ text: Prawn::Rtl::Connector.fix_rtl(string) }], options)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|