/itexToMML

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/itexToMML/

« back to all changes in this revision

Viewing changes to itex-src/itextomml.rb

  • Committer: Jacques Distler
  • Date: 2010-04-29 02:20:26 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20100429022026-hr47sp3zms2no20r
Fix svg Environment

Fix a very annoying bug where you couldn't
have a '\' in the svg environment.

Show diffs side-by-side

added added

removed removed

84
84
      def as_bytes(string)
85
85
        string.force_encoding("ASCII-8BIT")
86
86
      end
87
 
    else
88
 
      def as_bytes(string)
89
 
        string
90
 
      end
91
 
    end
92
 
 
93
 
    if "".respond_to?(:force_encoding)
94
87
      def as_utf8(string)
95
88
        string.force_encoding("UTF-8")
96
89
      end
97
90
    else
 
91
      def as_bytes(string)
 
92
        string
 
93
      end
98
94
      def as_utf8(string)
99
95
        string
100
96
      end