[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor PyEditConfiguration.java,1.9,1.10
Brought to you by:
fabioz
From: Aleksandar T. <at...@us...> - 2004-05-25 21:10:49
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28661/src/org/python/pydev/editor Modified Files: PyEditConfiguration.java Log Message: Fixed [ 932204 ] tab-indenting uses only spaces instead of tabs Index: PyEditConfiguration.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/PyEditConfiguration.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PyEditConfiguration.java 22 Apr 2004 10:35:23 -0000 1.9 --- PyEditConfiguration.java 25 May 2004 21:10:40 -0000 1.10 *************** *** 106,111 **** for (int i = 0; i < tabWidth; i++) spaces.append(" "); ! boolean spacesFirst = prefs.getBoolean(PydevPrefs.SUBSTITUTE_TABS) || ! ((PyAutoIndentStrategy)getAutoIndentStrategy(null, null)).forceTabs; if (spacesFirst) { indentPrefixes[0] = spaces.toString(); --- 106,111 ---- for (int i = 0; i < tabWidth; i++) spaces.append(" "); ! boolean spacesFirst = prefs.getBoolean(PydevPrefs.SUBSTITUTE_TABS) && ! !((PyAutoIndentStrategy)getAutoIndentStrategy(null, null)).forceTabs; if (spacesFirst) { indentPrefixes[0] = spaces.toString(); *************** *** 129,132 **** --- 129,133 ---- String contentType) { resetIndentPrefixes(); + sourceViewer.setIndentPrefixes(indentPrefixes, contentType); return indentPrefixes; } |