Whitespace changes in unit test runner output?

Looks like whitespace formatting changed in the unit test runner results. We have nicely formatted SQL in a lot of error messages but now when we get errors every line is left trimmed and much harder to read.

We moved from ReSharper 2.5 to 4.0 EAP so perhaps this change was made in 3.0.

If this was intentional can there be an option to not trim whitespace? If this is not intentional, then hopefully it can be fixed.

Thanks,

Sam

4 comments
Comment actions Permalink

Hello Samuel,

I've just tried it and spaces are correctly preserved in output:


public class Test
{

public void testOutput()
{
Trace.WriteLine("Debug trace");
Console.WriteLine("No spaces");
Console.WriteLine(" Some spaces");
}
}

Do you have an example when it doesn't work?

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


SN> Looks like whitespace formatting changed in the unit test runner
SN> results. We have nicely formatted SQL in a lot of error messages
SN> but now when we get errors every line is left trimmed and much
SN> harder to read.
SN>
SN> We moved from ReSharper 2.5 to 4.0 EAP so perhaps this change was
SN> made in 3.0.
SN>
SN> If this was intentional can there be an option to not trim
SN> whitespace? If this is not intentional, then hopefully it can be
SN> fixed.
SN>
SN> Thanks,
SN>
SN> Sam
SN>


0
Comment actions Permalink

Try it with tabs instead of spaces.

Best regards,

Sam


public void WhiteSpace()
{
string text = "This is some text\r\nleft\r\n\tindented one tab\r\n\t\tindented two tabs\r\nleft again";
Console.WriteLine(text);
throw new Exception(text);
}



Attachment(s):
ResharperWhitespace.png
0
Comment actions Permalink

Hello Samuel,

SN> Try it with tabs instead of spaces.
I see. So how many   should we insert for each tab? :)

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

4 of course. :)

0

Please sign in to leave a comment.