Merge branch 'PY-10179' of https://github.com/Amarchuk/intellij-community into Amarch...
[idea/community.git] / python / src / com / jetbrains / python / console / PydevConsoleExecuteActionHandler.java
index b4d83600b7b96ed2d0f204aab32bf0555ec66218..9a835315486f8e4fc14cb8f3993fa9d3895cbc4b 100644 (file)
@@ -137,13 +137,12 @@ public class PydevConsoleExecuteActionHandler extends ProcessBackedConsoleExecut
 
     // multiline strings handling
     if (myInMultilineStringState != null) {
-      if (PyConsoleUtil.isDoubleQuoteMultilineStarts(line)) {
+      if (PyConsoleUtil.isDoubleQuoteMultilineStarts(line) || PyConsoleUtil.isSingleQuoteMultilineStarts(line)) {
         myInMultilineStringState = null;
         // restore language
         console.setLanguage(PythonLanguage.getInstance());
         console.setPrompt(PyConsoleUtil.ORDINARY_PROMPT);
-      }
-      else {
+      } else {
         return;
       }
     }