[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/autoedit PyAutoIndentStrategy.java,1.27,1.2
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-03-16 13:03:15
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/autoedit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12875/src/org/python/pydev/editor/autoedit Modified Files: PyAutoIndentStrategy.java Log Message: Index: PyAutoIndentStrategy.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/autoedit/PyAutoIndentStrategy.java,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** PyAutoIndentStrategy.java 16 Mar 2006 01:43:15 -0000 1.27 --- PyAutoIndentStrategy.java 16 Mar 2006 13:03:06 -0000 1.28 *************** *** 112,116 **** //if we should not use smart indent, this function has no use. if(this.prefs.getSmartIndentPar()){ ! text = makeSmartIndent(text, smartIndent); } } --- 112,118 ---- //if we should not use smart indent, this function has no use. if(this.prefs.getSmartIndentPar()){ ! if(DocUtils.hasOpeningBracket(trimmedLine) || DocUtils.hasClosingBracket(trimmedLine)){ ! text = makeSmartIndent(text, smartIndent); ! } } } |