String fix and a bunch of PEP8 issues I had collected in the meanwhile.
This commit is contained in:
@@ -22,11 +22,13 @@ import bpy
|
||||
|
||||
language_id = 'python'
|
||||
|
||||
|
||||
def add_scrollback(text, text_type):
|
||||
for l in text.split('\n'):
|
||||
bpy.ops.console.scrollback_append(text=l.replace('\t', ' '),
|
||||
type=text_type)
|
||||
|
||||
|
||||
def get_console(console_id):
|
||||
'''
|
||||
helper function for console operators
|
||||
@@ -70,6 +72,7 @@ def get_console(console_id):
|
||||
PROMPT = '>>> '
|
||||
PROMPT_MULTI = '... '
|
||||
|
||||
|
||||
def execute(context):
|
||||
sc = context.space_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user