Console: add support for displaying tab-stops
Without this it was necessary to convert pasted text into spaces for them to display properly. Since tabs are a valid part of a string, it's incorrect to assume tabs can always be expanded to spaces. Pasted text and console output now display tabs properly, the tab still uses spaces for indenting though.
This commit is contained in:
@@ -34,8 +34,7 @@ class _TempModuleOverride:
|
||||
|
||||
def add_scrollback(text, text_type):
|
||||
for l in text.split("\n"):
|
||||
bpy.ops.console.scrollback_append(text=l.replace("\t", " "),
|
||||
type=text_type)
|
||||
bpy.ops.console.scrollback_append(text=l, type=text_type)
|
||||
|
||||
|
||||
def replace_help(namespace):
|
||||
|
||||
Reference in New Issue
Block a user