You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ch...@apache.org on 2006/09/12 15:55:04 UTC

svn commit: r442583 - /lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java

Author: chestnut
Date: Tue Sep 12 06:55:03 2006
New Revision: 442583

URL: http://svn.apache.org/viewvc?view=rev&rev=442583
Log:
fckeditor likes to turn plain - into an ndash.
Need to come up with a better solution for this, not sure why tidy isn't cleaning this up

Modified:
    lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java

Modified: lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java?view=diff&rev=442583&r1=442582&r2=442583
==============================================================================
--- lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java (original)
+++ lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java Tue Sep 12 06:55:03 2006
@@ -106,6 +106,8 @@
         content = content.replaceAll(" "," ");
         content = content.replaceAll("“","“");
         content = content.replaceAll("”","”");
+        content = content.replaceAll("–","–");
+        content = content.replaceAll("—","—");
         saveDocument(encoding, content);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org