I don’t get the connection. Every other IDE gets it right. Even RB and Xojo got it right till 2016.
This is meant sarcastically of course: don’t you have more important stuff to do than to introduce something like this. And for what reason was that introduced? And why does every other IDE get it right (Xcode, Netbeans, Aptana, VS, Fire (RemObjects), which I all have used lately)?
As for Norman’s example, the beginning of a line is handled by Xojo. As far as I know, leading spaces on a line were always stripped. And if not, I’m fine with that. Xojo does the indentation for me.
However, this is a situation that happens a lot:
1.you have “abc defghi” on a line
2.select [space]def
3.paste to the end of the line
4.observe the space is gone. It now says “abc defghidef” instead of “abc defghi def”
[quote=282888:@Eli Ott]I don’t get the connection. Every other IDE gets it right. Even RB and Xojo got it right till 2016.
[/quote]
It mostly got it right - up to 2015r4
Until you save as text & reopen and IF you happened to have spaces at the beginning of the line they’re now gone
[quote=282888:@Eli Ott]This is meant sarcastically of course: don’t you have more important stuff to do than to introduce something like this.
[/quote]
Since the IDE IS my main responsibility - umm … no ???
[quote=282888:@Eli Ott]And for what reason was that introduced?
[/quote]
There were 2 other bugs that we made chnages to fix - apparently one of those fixes introduced this behaviour
Realistically there’s no reason why not
Some folks seem to want that to align their comments in specific ways
like
if a then // comment comment comment
// comment continuation
The problem is that loading from TEXT format will strip them
And it only has to do this because it uses tabs + spaces to indent the code IN the text formatted file
And if it didn’t strip them then every subsequent time it wrote your code out it would add more & more spaces
You can see where that leads
Binary & XML dont have this problem as they use tags to delimit the start & end of line so they know where the line starts & ends