hello.
SetLineIndentation includes tabs, or space sometimes.
I think this is error.
so I tried to replace tabs with space but it did not work. how can I
fix this?
def autoindent(self):
pos = self.editor.GetCurrentPos()
line = self.editor.GetCurrentLine()
if line:
level = self.editor.GetLineIndentation(line - 1)
if self.editor.GetLine(line - 1).strip().endswith(":"):
level += 6
self.editor.SetLineIndentation(line, level)
self.editor.GetLine(line).expandtabs(4)
self.editor.GotoPos(pos + level)
Wonjun, Choi