thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Tabs turn into spaces when pasting text #418

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In editor Options, select "Tab indent" and "Tab delete"
2. copy text with no preceding white spaces.
3. go to an end of an indented line and press return to get a new line.
4. new line is properly indented (with a tab).
5. paste text.
6. indentation is changed to spaces, instead of tabs.

What is the expected output? What do you see instead?
expected output: indentation stays with tabs.
output: indentation is changed to spaces, which breaks the code.

What version of the product are you using? On what operating system?
Pyscripter 2.1.10

Please provide any additional information below.

Original issue reported on code.google.com by lea...@gmail.com on 22 Sep 2010 at 5:35

GoogleCodeExporter commented 9 years ago
I assume you have the "Tabs to spaces" editor option unchecked.  When working 
with tabs (not really recommended, see 
http://www.python.org/dev/peps/pep-0008/) you should uncheck the "Trim trailing 
spaces option" to avoid issues such as the ones mentioned.  

Original comment by pyscripter on 22 Sep 2010 at 11:22

GoogleCodeExporter commented 9 years ago
I thought convention was tabs, not spaces.

I concur with the invalidity of this bug and will be converting my code to 
spaces (yay for "Reindent" option :)

Original comment by lea...@gmail.com on 23 Sep 2010 at 8:09

GoogleCodeExporter commented 9 years ago
Issue 450 has been merged into this issue.

Original comment by pyscripter on 2 Dec 2010 at 11:27