From dac9bfe3d42c252b12719647b4bcab2f0c760d9c Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Sat, 25 May 2024 10:37:52 -0500 Subject: [PATCH] Add backticks to copied error message --- src/blenderbim/blenderbim/bim/module/debug/operator.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/debug/operator.py b/src/blenderbim/blenderbim/bim/module/debug/operator.py index 8a53d6de83..badec38b69 100644 --- a/src/blenderbim/blenderbim/bim/module/debug/operator.py +++ b/src/blenderbim/blenderbim/bim/module/debug/operator.py @@ -40,7 +40,7 @@ from blenderbim.bim.ifc import IfcStore class CopyDebugInformation(bpy.types.Operator): bl_idname = "bim.copy_debug_information" bl_label = "Copy Debug Information" - bl_description = "Copies debugging information to your clipboard for use in bugreports" + bl_description = "Copies debugging information to your clipboard for use in bug reports" def execute(self, context): info = get_debug_info() @@ -56,11 +56,13 @@ class CopyDebugInformation(bpy.types.Operator): text = format_debug_info(info) + text_with_backticks = f"```\n{text}\n```" + print("-" * 80) - print(text) + print(text_with_backticks) print("-" * 80) - context.window_manager.clipboard = text + context.window_manager.clipboard = text_with_backticks return {"FINISHED"}