StringBuffer buf = new StringBuffer(); int count = getWhiteSpace(tabSize,line); int prevCount = getWhiteSpace(tabSize,prevLine);
int count = jEdit.getLeadingWhiteSpaceWidth(line,tabSize); int prevCount = jEdit.getLeadingWhiteSpaceWidth(prevLine, tabSize);
	private String autoIndent(int tabSize, String prevLine, String line,		boolean noTabs)	{		StringBuffer buf = new StringBuffer();		int count = getWhiteSpace(tabSize,line);		int prevCount = getWhiteSpace(tabSize,prevLine);		if(prevCount <= count)			return null;		else if(noTabs)		{			prevCount -= count;			while(prevCount-- > 0)				buf.append(' ');		}		else				{			prevCount -= count;			count = prevCount / 8;			while(count-- > 0)				buf.append('\t');			count = prevCount % 8;			while(count-- > 0)				buf.append(' ');		}		return buf.toString();	}