<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -266,6 +266,15 @@ TextileEditor.Methods = {
         newlineEndPos = 1;
       }
 
+      // remove space from the end of the selectedText.
+      // Fixes a bug that causes any browser running under Microsoft Internet Explorer 
+      // to append an additional space before the closing element.
+      // *Bold text *here =&gt; *Bold text*
+      if (selectedText.match(/\s$/g)) {
+        selectedText = selectedText.replace(/\s$/g,'');
+        followupText = ' ';
+      }
+      
       // no clue, i'm sure it made sense at the time i wrote it
       if (followupText.match(/^\n/)) {
         newlineFollowup = '';</diff>
      <filename>assets/javascripts/textile-editor.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2c896d39576827bb3b8605413fc4dc380fceeb1c</id>
    </parent>
  </parents>
  <author>
    <name>Simone Carletti</name>
    <email>weppos@weppos.net</email>
  </author>
  <url>http://github.com/felttippin/textile-editor-helper/commit/254e9ec32b7447d738cc7a1d1d1a34545d7cd74e</url>
  <id>254e9ec32b7447d738cc7a1d1d1a34545d7cd74e</id>
  <committed-date>2008-12-16T07:19:49-08:00</committed-date>
  <authored-date>2008-11-04T01:25:59-08:00</authored-date>
  <message>* Fixed a bug that causes any browser running under Microsoft Internet Explorer to append an additional space before textile closing element (Thanks to Lorenzo Monaco).

Signed-off-by: felttippin &lt;ryan@aisleten.com&gt;</message>
  <tree>99bc071fb653f0b917227b7907f408198861a6e7</tree>
  <committer>
    <name>felttippin</name>
    <email>ryan@aisleten.com</email>
  </committer>
</commit>
