From ea943e0d7c01325f3adb459bdbad881f80f46217 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 14 May 2013 17:28:44 +0200 Subject: [PATCH] 0001121: IndentationError in Python Console --- src/Gui/PythonConsole.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Gui/PythonConsole.cpp b/src/Gui/PythonConsole.cpp index a8306d693..28586eb4c 100644 --- a/src/Gui/PythonConsole.cpp +++ b/src/Gui/PythonConsole.cpp @@ -786,8 +786,10 @@ bool PythonConsole::isComment(const QString& source) const QChar ch = source.at(i++); if (ch.isSpace()) continue; - if (ch == QLatin1Char('#')) + else if (ch == QLatin1Char('#')) return true; + else + return false; } return false;