[QScintilla] QScintilla observation

Phil Thompson phil at riverbankcomputing.com
Fri Jul 25 22:49:15 BST 2014


On 25/07/2014 6:40 pm, Detlev Offenbach wrote:
> Hi,
> 
> I was informed about an observation in the eric IDE I don't have a
> clue how to fix. When a Python
> source file is loaded and the enter key is pressed in column 0 for an
> indented line, a newline is
> inserted but the indentation of the line is not maintained (i.e. 
> removed).
> 
> Example:
> 
> for i in range(1,5):
>     print(i)
> ^
> 
> If you press return while the carret is at the ^ position you get this 
> result:
> 
> for i in range(1,5):
> 
> print(i)
> 
> Any hint on what I'm doing wrong would be appreciated.

I assume the indentation is retained if you press enter after the colon.

I'll take a look when I get the chance.

Phil


More information about the QScintilla mailing list