From ed81958a44baaa2028346cad26f04ed93aafb04b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Jun 2015 12:21:35 +0530 Subject: [PATCH] ... --- src/calibre/utils/rapydscript.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/utils/rapydscript.py b/src/calibre/utils/rapydscript.py index efca5de49b..3dcb65ec3e 100644 --- a/src/calibre/utils/rapydscript.py +++ b/src/calibre/utils/rapydscript.py @@ -233,8 +233,8 @@ class Repl(object): lw = '' if more and self.lines: if self.lines: - if self.lines[-1][-1:] in self.LINE_CONTINUATION_CHARS: - lw = ' ' * 4 + if self.lines[-1][-1:] == ':': + lw = ' ' * 4 # autoindent lw = leading_whitespace(self.lines[-1]) + lw if hasattr(self, 'readline'): self.readline.set_pre_input_hook(lambda:(self.readline.insert_text(lw), self.readline.redisplay()))