Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3929/src/org/python/pydev/editor
Modified Files:
PyAutoIndentStrategy.java
Log Message:
Changed so that we get the indentation string when we press tab
and not only a single space.
Index: PyAutoIndentStrategy.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/PyAutoIndentStrategy.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PyAutoIndentStrategy.java 14 Jun 2004 12:50:10 -0000 1.4
--- PyAutoIndentStrategy.java 16 Jul 2004 15:32:37 -0000 1.5
***************
*** 85,89 ****
text = indentString;
else
! text = " ";
// contains a char (pasted text)
} else {
--- 85,89 ----
text = indentString;
else
! text = indentString;
// contains a char (pasted text)
} else {
***************
*** 179,189 ****
command.text = autoIndentNewline(
document, command.length, command.text, command.offset);
! if (PydevPrefs.getPreferences().getBoolean(PydevPrefs.SUBSTITUTE_TABS))
command.text = convertTabs(
document, command.length, command.text, command.offset,
getIndentationString());
! else command.text = convertSpaces(
document, command.length, command.text, command.offset,
getIndentationString());
} catch (BadLocationException e) {
e.printStackTrace();
--- 179,191 ----
command.text = autoIndentNewline(
document, command.length, command.text, command.offset);
! if (PydevPrefs.getPreferences().getBoolean(PydevPrefs.SUBSTITUTE_TABS)){
command.text = convertTabs(
document, command.length, command.text, command.offset,
getIndentationString());
! }else {
! command.text = convertSpaces(
document, command.length, command.text, command.offset,
getIndentationString());
+ }
} catch (BadLocationException e) {
e.printStackTrace();
|