Index: Abbrev.java =================================================================== RCS file: /cvs/editor/libsrc/org/netbeans/editor/Abbrev.java,v retrieving revision 1.22 diff -u -r1.22 Abbrev.java --- Abbrev.java 20 Dec 2000 16:15:05 -0000 1.22 +++ Abbrev.java 25 Nov 2002 20:09:47 -0000 @@ -240,6 +240,11 @@ } else { doc.insertString(dotPos, ins, null); } + + if(ins.indexOf("\n") != -1) { + Formatter formatter = doc.getFormatter(); + formatter.reformat(doc, dotPos, dotPos + ins.length()); + } expanded = true; } else if (expansion instanceof Action) { ((Action)expansion).actionPerformed(evt);