itextomml 1.3.25 → 1.3.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,11 @@
1
- /* itex2MML 1.3.25
2
- * itex2MML.h last modified 6/9/2010
1
+ /* itex2MML 1.3.26
2
+ * itex2MML.h last modified 7/20/2010
3
3
  */
4
4
 
5
5
  #ifndef ITEX2MML_H
6
6
  #define ITEX2MML_H
7
7
 
8
- #define ITEX2MML_VERSION "1.3.25"
8
+ #define ITEX2MML_VERSION "1.3.26"
9
9
 
10
10
  #ifdef __cplusplus
11
11
  extern "C" {
@@ -2211,8 +2211,8 @@ static int yy_more_len = 0;
2211
2211
  #define YY_RESTORE_YY_MORE_OFFSET
2212
2212
  char *itex2MML_yytext;
2213
2213
  #line 1 "itex2MML.l"
2214
- /* itex2MML 1.3.25
2215
- * itex2MML.l last modified 6/9/2010
2214
+ /* itex2MML 1.3.26
2215
+ * itex2MML.l last modified 7/20/2010
2216
2216
  */
2217
2217
  #line 6 "itex2MML.l"
2218
2218
 
@@ -2775,7 +2775,7 @@ YY_RULE_SETUP
2775
2775
  case 59:
2776
2776
  YY_RULE_SETUP
2777
2777
  #line 119 "itex2MML.l"
2778
- {yylval=itex2MML_copy_string("⃫"); return MO;}
2778
+ {yylval=itex2MML_copy_string("⫽"); return MO;}
2779
2779
  YY_BREAK
2780
2780
  case 60:
2781
2781
  #line 122 "itex2MML.l"
@@ -2308,12 +2308,17 @@ end
2308
2308
 
2309
2309
  #:stopdoc:
2310
2310
 
2311
+ TO_ESCAPE = {
2312
+ '&' => '&',
2313
+ '<' => '&lt;',
2314
+ '>' => '&gt;',
2315
+ "'" => '&#39;',
2316
+ '"' => '&quot;',
2317
+ }
2318
+ TO_ESCAPE_PATTERN = Regexp.union(TO_ESCAPE.keys)
2319
+
2311
2320
  def escapeHTML
2312
- self.gsub( /&/, "&amp;" ).
2313
- gsub( /</, "&lt;" ).
2314
- gsub( />/, "&gt;" ).
2315
- gsub(/'/, "&#39;" ).
2316
- gsub(/"/, "&quot;" )
2321
+ self.gsub(TO_ESCAPE_PATTERN){|m| TO_ESCAPE[m]}
2317
2322
  end
2318
2323
 
2319
2324
  def unescapeHTML
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itextomml
3
3
  version: !ruby/object:Gem::Version
4
- hash: 41
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 25
10
- version: 1.3.25
9
+ - 26
10
+ version: 1.3.26
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacques Distler
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-09 00:00:00 -05:00
18
+ date: 2010-07-20 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21