newline hack to fix autoformat problem

This commit is contained in:
benfry
2008-09-27 18:38:03 +00:00
parent 0e349474de
commit e6e4b95f4e
+2 -1
View File
@@ -435,7 +435,8 @@ public class AutoFormat {
public void show() {
StringBuffer onechar;
String originalText = editor.getText();
// Adding an additional newline as a hack around other errors
String originalText = editor.getText() + "\n";
strOut = new StringBuffer();
indentValue = Preferences.getInteger("editor.tabs.size");
indentChar = new String(" ");