ID:260643
 
Applicable Configuration:
BYOND Version: 430.1001
Operating System: Windows XP Pro SP3
Web Browser: Firefox 3 / IE7
Video Card (for graphics bugs): Radeon 9550

Descriptive Problem Summary:
Tabs are not being preserved properly in DreamMaker when saving files.

This results in some annoyance as I use tabs to localize where I am in code.

I believe this also occurs in 429 and below which is why I am reporting it.

Numbered Steps to Reproduce Problem:
1. Open DreamMaker.
2. Make a new .dm file.
3. Paste the code below.
4. Indent the blank line so it will match the indentation of the previous lines.
5. Close and re-open DreamMaker.
6. The tabs are now missing. (?)

Code Snippet (if applicable) to Reproduce Problem:
//I dunno.
proc
mySimpleProcedure()
. = 0
for(var/X in list(2, 2))
. += X

for(var/client/C)
C << "2 + 2 = [.]"


Expected Results:
DreamMaker does not mess with my file and the indentation stays proper as it is.

Actual Results:
Indentation on blank lines is not preserved as it should.

Does the problem occur:
Every time? Or how often?
Everytime.
In other projects?
Yes.
On other computers?
On both my own computer, my server and a friends' (who is running 429).
In other user accounts?
Yes.

When does the problem NOT occur?
The problem does not occur if the line in question is not blank.

Workarounds:
Write // at every blank line, or use a different editor.
Stripping whitespace off the end of the line is a feature, not a bug. You could make a case for making that an option, but it ain't no bug.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
Stripping whitespace off the end of the line is a feature, not a bug. You could make a case for making that an option, but it ain't no bug.

Okay, then I'll make a case for it -- it should be an option, as I use the tabs to localize my position.

It's ironic how all these years I've been scolding myself for "forgetting" to put proper indentation on whitespace, whilst all this time it was a "feature" that was modifying the file against my will.
In response to Android Data
Android Data wrote:
It's ironic how all these years I've been scolding myself for "forgetting" to put proper indentation on whitespace, whilst all this time it was a "feature" that was modifying the file against my will.

Having done the same many times as well, I'll second the request for an option to toggle it on or off.
In response to Nick231
I third this request, I use this frequently.
In response to Tekken
I fourth this request.

George Gough

[Edit]
Holy crap, I misspelled my name!