Parent Directory | Revision Log | 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 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |