srdperu-prawn-format 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/prawn/format/lexer.rb +20 -2
- metadata +1 -1
data/lib/prawn/format/lexer.rb
CHANGED
@@ -142,7 +142,7 @@ module Prawn
|
|
142
142
|
{ :type => :text, :text => pieces }
|
143
143
|
end
|
144
144
|
end
|
145
|
-
|
145
|
+
|
146
146
|
ENTITY_MAP = {
|
147
147
|
"lt" => "<",
|
148
148
|
"gt" => ">",
|
@@ -151,7 +151,25 @@ module Prawn
|
|
151
151
|
"ndash" => "\xE2\x80\x93",
|
152
152
|
"nbsp" => "\xC2\xA0",
|
153
153
|
"bull" => "\342\200\242",
|
154
|
-
"quot" => '"',
|
154
|
+
"quot" => '"',
|
155
|
+
"trade" => '™',
|
156
|
+
"iexcl" => '¡',
|
157
|
+
"cent" => '¢',
|
158
|
+
"pound" => '£',
|
159
|
+
"curren" => '¤',
|
160
|
+
"copy" => '©',
|
161
|
+
"aacute" => 'á',
|
162
|
+
"eacute" => 'é',
|
163
|
+
"iacute" => 'í',
|
164
|
+
"oacute" => 'ó',
|
165
|
+
"uacute" => 'ú',
|
166
|
+
"Aacute" => 'Á',
|
167
|
+
"Eacute" => 'É',
|
168
|
+
"Iacute" => 'Í',
|
169
|
+
"Oacute" => 'Ó',
|
170
|
+
"Uacute" => 'Ú',
|
171
|
+
"ntilde" => 'ñ',
|
172
|
+
"Ntilde" => 'Ñ',
|
155
173
|
}
|
156
174
|
|
157
175
|
def scan_entity
|