fixed 'else' keywoard handling in autoformat

This commit is contained in:
Ostap Andrusiv
2013-04-03 17:09:08 +03:00
parent 9d34bbcf42
commit 7c4fa597c6

View File

@@ -376,6 +376,11 @@ public class AutoFormat implements Formatter {
if ((!s_flag) || buf.length() > 0) {
buf.append(c);
}
// issue https://github.com/processing/processing/issues/364
s_flag = false;
trimRight(result);
result.append(" ");
writeIndentedLine();
s_flag = false;
break;