Sorry, I meant to hit enter, but I hit CTRL-enter and sent that last
patch without any text description.

I'll include the patch and ChangeLog entry here, so at least one of the
emails is complete.

This patch accompanies changes to
gnu.testlet.javax.swing.text.DefaultStyledDocument.ElementBuffer.ElementStructure3

2005-12-21  Anthony Balkissoon  <[EMAIL PROTECTED]>

        * javax/swing/text/DefaultEditorKit.java:
        (read): Changed the call to insertString to leave out the trailing
        new line.

--Tony
Index: javax/swing/text/DefaultEditorKit.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/DefaultEditorKit.java,v
retrieving revision 1.26
diff -u -r1.26 DefaultEditorKit.java
--- javax/swing/text/DefaultEditorKit.java	20 Dec 2005 22:42:04 -0000	1.26
+++ javax/swing/text/DefaultEditorKit.java	21 Dec 2005 21:57:22 -0000
@@ -948,7 +948,7 @@
 	content.append("\n");
       }
     
-    document.insertString(offset, content.toString(),
+    document.insertString(offset, content.substring(0, content.length() - 1),
 			  SimpleAttributeSet.EMPTY);
   }
 
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to