[Bf-blender-cvs] [c0a7e9b6312] master: D2777: allow blank lines and lines with spaces/tabs in cut/paste

Gaia Clary noreply at git.blender.org
Thu Sep 21 00:07:41 CEST 2017


Commit: c0a7e9b6312d74a19ae61168350cb02b33eab6ae
Author: Gaia Clary
Date:   Mon Aug 7 20:34:22 2017 +0200
Branches: master
https://developer.blender.org/rBc0a7e9b6312d74a19ae61168350cb02b33eab6ae

D2777: allow blank lines and lines with spaces/tabs in cut/paste

===================================================================

M	release/scripts/modules/console_python.py

===================================================================

diff --git a/release/scripts/modules/console_python.py b/release/scripts/modules/console_python.py
index a740f31c830..917819c908b 100644
--- a/release/scripts/modules/console_python.py
+++ b/release/scripts/modules/console_python.py
@@ -163,7 +163,7 @@ def execute(context, is_interactive):
             line = line_object.body
 
             # run the console, "\n" executes a multi line statement
-            line_exec = line if line.strip() else "\n"
+            line_exec = line if line.strip() else ""
 
             is_multiline = console.push(line_exec)
         except:



More information about the Bf-blender-cvs mailing list