<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -70,40 +70,39 @@ module TextyHelper
       # Pre-process encoding
       unless text.nil?
         if encoding == 'utf-8'
-          
           # Some strange caracters to handle
-          text.gsub!(&quot;\342\200\042&quot;, &quot;&amp;ndash;&quot;) # en-dash
-          text.gsub!(&quot;\342\200\041&quot;, &quot;&amp;mdash;&quot;) # em-dash
-          text.gsub!(&quot;\342\200\174&quot;, &quot;&amp;hellip;&quot;) # elipse
-          text.gsub!(&quot;\342\200\176&quot;, &quot;&amp;lsquo;&quot;) # single quote
-          text.gsub!(&quot;\342\200\177&quot;, &quot;&amp;rsquo;&quot;) # single quote
-          text.gsub!(&quot;\342\200\230&quot;, &quot;&amp;rsquo;&quot;) # single quote
-          text.gsub!(&quot;\342\200\231&quot;, &quot;&amp;rsquo;&quot;) # single quote
-          text.gsub!(&quot;\342\200\234&quot;, &quot;&amp;ldquo;&quot;) # Double quote, right
-          text.gsub!(&quot;\342\200\235&quot;, &quot;&amp;rdquo;&quot;) # Double quote, left
+          text.gsub!(&quot;\342\200\042&quot;, &quot;&amp;ndash;&quot;)   # en-dash
+          text.gsub!(&quot;\342\200\041&quot;, &quot;&amp;mdash;&quot;)   # em-dash
+          text.gsub!(&quot;\342\200\174&quot;, &quot;&amp;hellip;&quot;)  # elipse
+          text.gsub!(&quot;\342\200\176&quot;, &quot;&amp;lsquo;&quot;)   # single quote
+          text.gsub!(&quot;\342\200\177&quot;, &quot;&amp;rsquo;&quot;)   # single quote
+          text.gsub!(&quot;\342\200\230&quot;, &quot;&amp;rsquo;&quot;)   # single quote
+          text.gsub!(&quot;\342\200\231&quot;, &quot;&amp;rsquo;&quot;)   # single quote
+          text.gsub!(&quot;\342\200\234&quot;, &quot;&amp;ldquo;&quot;)   # Double quote, right
+          text.gsub!(&quot;\342\200\235&quot;, &quot;&amp;rdquo;&quot;)   # Double quote, left
           text.gsub!(&quot;\342\200\242&quot;, &quot;.&quot;)
-          text.gsub!(&quot;\342\202\254&quot;, &quot;&amp;euro;&quot;); # Euro symbol
-          text.gsub!(/\S\200\S/, &quot; &quot;) # every strange character send to the moon
-          text.gsub!(&quot;\176&quot;, &quot;\'&quot;) # single quote
-          text.gsub!(&quot;\177&quot;, &quot;\'&quot;) # single quote
-          text.gsub!(&quot;\205&quot;, &quot;-&quot;);		# ISO-Latin1 horizontal elipses (0x85)
-          text.gsub!(&quot;\221&quot;, &quot;\'&quot;);	# ISO-Latin1 left single-quote
-          text.gsub!(&quot;\222&quot;, &quot;\'&quot;);	# ISO-Latin1 right single-quote
-          text.gsub!(&quot;\223&quot;, &quot;\&quot;&quot;);	# ISO-Latin1 left double-quote
-          text.gsub!(&quot;\224&quot;, &quot;\&quot;&quot;);	# ISO-Latin1 right double-quote
-          text.gsub!(&quot;\225&quot;, &quot;\*&quot;);	# ISO-Latin1 bullet
-          text.gsub!(&quot;\226&quot;, &quot;-&quot;);		# ISO-Latin1 en-dash (0x96)
-          text.gsub!(&quot;\227&quot;, &quot;-&quot;);		# ISO-Latin1 em-dash (0x97)
-          text.gsub!(&quot;\230&quot;, &quot;\'&quot;) # single quote
-          text.gsub!(&quot;\231&quot;, &quot;\'&quot;) # single quote
-          text.gsub!(&quot;\233&quot;, &quot;&gt;&quot;);		# ISO-Latin1 single right angle quote
-          text.gsub!(&quot;\234&quot;, &quot;\&quot;&quot;) # Double quote
-          text.gsub!(&quot;\235&quot;, &quot;\&quot;&quot;) # Double quote
-          text.gsub!(&quot;\240&quot;, &quot; &quot;);		# ISO-Latin1 nonbreaking space
-          text.gsub!(&quot;\246&quot;, &quot;\|&quot;);	# ISO-Latin1 broken vertical bar
-          text.gsub!(&quot;\255&quot;, &quot;&quot;);		# ISO-Latin1 soft hyphen (0xAD)
-          text.gsub!(&quot;\264&quot;, &quot;\'&quot;);	# ISO-Latin1 spacing acute
-          text.gsub!(&quot;\267&quot;, &quot;\*&quot;);	# ISO-Latin1 middle dot (0xB7)
+          text.gsub!(&quot;\342\202\254&quot;, &quot;&amp;euro;&quot;);   # Euro symbol
+          text.gsub!(/\S\200\S/, &quot; &quot;)             # every strange character send to the moon
+          text.gsub!(&quot;\176&quot;, &quot;\'&quot;)  # single quote
+          text.gsub!(&quot;\177&quot;, &quot;\'&quot;)  # single quote
+          text.gsub!(&quot;\205&quot;, &quot;-&quot;)		# ISO-Latin1 horizontal elipses (0x85)
+          text.gsub!(&quot;\221&quot;, &quot;\'&quot;)	# ISO-Latin1 left single-quote
+          text.gsub!(&quot;\222&quot;, &quot;\'&quot;)	# ISO-Latin1 right single-quote
+          text.gsub!(&quot;\223&quot;, &quot;\&quot;&quot;)	# ISO-Latin1 left double-quote
+          text.gsub!(&quot;\224&quot;, &quot;\&quot;&quot;)	# ISO-Latin1 right double-quote
+          text.gsub!(&quot;\225&quot;, &quot;\*&quot;)	# ISO-Latin1 bullet
+          text.gsub!(&quot;\226&quot;, &quot;-&quot;)		# ISO-Latin1 en-dash (0x96)
+          text.gsub!(&quot;\227&quot;, &quot;-&quot;)		# ISO-Latin1 em-dash (0x97)
+          text.gsub!(&quot;\230&quot;, &quot;\'&quot;)  # single quote
+          text.gsub!(&quot;\231&quot;, &quot;\'&quot;)  # single quote
+          text.gsub!(&quot;\233&quot;, &quot;&gt;&quot;)		# ISO-Latin1 single right angle quote
+          text.gsub!(&quot;\234&quot;, &quot;\&quot;&quot;)  # Double quote
+          text.gsub!(&quot;\235&quot;, &quot;\&quot;&quot;)  # Double quote
+          text.gsub!(&quot;\240&quot;, &quot; &quot;)		# ISO-Latin1 nonbreaking space
+          text.gsub!(&quot;\246&quot;, &quot;\|&quot;)	# ISO-Latin1 broken vertical bar
+          text.gsub!(&quot;\255&quot;, &quot;&quot;)	  # ISO-Latin1 soft hyphen (0xAD)
+          text.gsub!(&quot;\264&quot;, &quot;\'&quot;)	# ISO-Latin1 spacing acute
+          text.gsub!(&quot;\267&quot;, &quot;\*&quot;)	# ISO-Latin1 middle dot (0xB7)
           ic = Iconv.new('UTF-8//IGNORE', 'UTF-8')
           text = ic.iconv(text + ' ')[0..-2]
         elsif encoding == 'iso-8859-15'
@@ -117,9 +116,8 @@ module TextyHelper
         text = conversion
         # Post-process encoding
         unless text.nil? or text.blank? or text.kind_of? ArgumentError
-          if encoding == 'utf-8'
-            text.gsub!(/[\240-\377]/) { |c| &quot;&amp;#%d;&quot; % c[0] }
-          elsif encoding == 'iso-8859-15'
+          text.gsub!(/[\240-\377]/) { |c| &quot;&amp;#%d;&quot; % c[0] }
+          if encoding == 'iso-8859-15'
             text.gsub!(&quot;&amp;#8217;&quot;, &quot;'&quot;)
           end
         end</diff>
      <filename>lib/texty_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>17af1e7ad5cb019f5a10fe81e762cffc96c92b32</id>
    </parent>
  </parents>
  <author>
    <name>wwwfeev</name>
    <email>wwwfeev@2117fd12-192b-0410-bd5d-90befd50b342</email>
  </author>
  <url>http://github.com/alx/feevy/commit/2a28b1c29317a28b9c0721526ae28b652a96c239</url>
  <id>2a28b1c29317a28b9c0721526ae28b652a96c239</id>
  <committed-date>2007-07-31T09:37:56-07:00</committed-date>
  <authored-date>2007-07-31T09:37:56-07:00</authored-date>
  <message>correct Balearweb problem

git-svn-id: svn+ssh://64.22.96.6/var/www/apps/feevy/repos/trunk@290 2117fd12-192b-0410-bd5d-90befd50b342</message>
  <tree>0a60f7eb1d62d50bc68e3acb6eb73c23d50c3592</tree>
  <committer>
    <name>wwwfeev</name>
    <email>wwwfeev@2117fd12-192b-0410-bd5d-90befd50b342</email>
  </committer>
</commit>
