/[classpath]/classpath/javax/swing/text/PlainDocument.java
ViewVC logotype

Diff of /classpath/javax/swing/text/PlainDocument.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by abalkiss, Wed Nov 16 16:35:40 2005 UTC revision 1.18 by abalkiss, Wed Nov 16 18:31:42 2005 UTC
# Line 235  public class PlainDocument extends Abstr Line 235  public class PlainDocument extends Abstr
235      throws BadLocationException      throws BadLocationException
236    {    {
237      String string = str;      String string = str;
238      if (Boolean.TRUE.equals(getProperty("filterNewlines")))      if (str != null && Boolean.TRUE.equals(getProperty("filterNewlines")))
239        string = str.replaceAll("\n", " ");        string = str.replaceAll("\n", " ");
240      super.insertString(offs, string, atts);      super.insertString(offs, string, atts);
241    }    }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26