From c5ca796da1fb3e8320aa2ea64174eac394e19f1b Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 13 Apr 1999 10:45:56 +0000 Subject: [PATCH] bug fix in long tabs git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@576 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/TabbedPrintWriter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jode/jode/decompiler/TabbedPrintWriter.java b/jode/jode/decompiler/TabbedPrintWriter.java index 0fcc5b8..e66e12e 100644 --- a/jode/jode/decompiler/TabbedPrintWriter.java +++ b/jode/jode/decompiler/TabbedPrintWriter.java @@ -53,11 +53,12 @@ public class TabbedPrintWriter { /* the slow way */ StringBuffer sb = new StringBuffer(tabs+7); 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; } 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(); } }