Merge pull request #4152 from PySimpleGUI/Dev-latest

Only put a paste comment in code if < 10 chars of code entered
This commit is contained in:
PySimpleGUI 2021-04-06 08:47:57 -04:00 committed by GitHub
commit 2ee30902af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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