From c83e538b86d81ada91621e37c87776a2c9c8c179 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Tue, 6 Apr 2021 08:47:41 -0400 Subject: [PATCH] Only put a paste comment in code if < 10 chars of code entered --- DemoPrograms/Demo_Post_An_Issue.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DemoPrograms/Demo_Post_An_Issue.py b/DemoPrograms/Demo_Post_An_Issue.py index a49052ce..51ca0c94 100644 --- a/DemoPrograms/Demo_Post_An_Issue.py +++ b/DemoPrograms/Demo_Post_An_Issue.py @@ -89,10 +89,9 @@ A **short** program that isolates and demonstrates the problem (Do not paste you This pre-formatted code block is all set for you to paste in your bit of code: ```python -# Paste your code here - {} + ``` #### Screenshot, Sketch, or Drawing @@ -101,7 +100,7 @@ This pre-formatted code block is all set for you to paste in your bit of code: """.format(python_exp, prog_exp, used_gui, gui_notes, cb_docs, cb_demos, cb_demo_port, cb_readme_other, cb_command_line, cb_issues, cb_github, - detailed_desc, code,) + detailed_desc, code if len(code) > 10 else '# Paste your code here') return body + body2