Script that converts between indentation and curly braces in Pythoncode

M

Musical Notation

Is there any script that converts indentation in Python code to curly braces? The indentation is sometime lost when I copy my code to an application or awebsite.
 
S

Steven D'Aprano

Is there any script that converts indentation in Python code to curly
braces? The indentation is sometime lost when I copy my code to an
application or a website.

Complain to the website or application that it is throwing away
significant data. If you had a website that turned this paragraph into
this:

"Complaintothewebsiteorapplicationthatitisthrowingawaysignificantdata.Ifyouhadawebsitethatturnedthisparagraphintothis"

you would rightly complain about the bug, or stop using the website.
Throwing away indentation is no different.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top