In Version 3.10.12, there's still an off-by-one issue
if you hit return on an already existing line
containing text immediately following a line that ends
Dan, if you've addressed this already, I apologize for
the bug post.
| is the cursor..
-> is a tab
if you hit enter, the following behavior occurs..
And here's the code to fix it..
in module drText, starting at line 120, replace the
source with the following code up to the "else"...
Basically, it checks to see if the current line after
the colon'ed line has text before applying the
if (self.grandparent.prefs.docautoindent == 2)
and (self.filetype == 0):
self.GetLineEndPosition(linenumber) - 1
if self.GetCharAt(checkat) == ord(':'):
numtabs = numtabs + 1