bug fix in long tabs

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@576 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 4c0325ed22
commit c5ca796da1
  1. 5
      jode/jode/decompiler/TabbedPrintWriter.java

@ -53,11 +53,12 @@ public class TabbedPrintWriter {
/* the slow way */ /* the slow way */
StringBuffer sb = new StringBuffer(tabs+7); StringBuffer sb = new StringBuffer(tabs+7);
while (tabs > 20) { while (tabs > 20) {
sb.append("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"); sb.append("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
.substring(0,20));
tabs -= 20; tabs -= 20;
} }
sb.append("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t " sb.append("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t "
.substring(20 - tabs, tabs + (currentIndent&7))); .substring(20 - tabs, 20 + (currentIndent&7)));
indentStr = sb.toString(); indentStr = sb.toString();
} }
} }

Loading…
Cancel
Save