B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
you're welcome ... my concern is that in this case, the white space was pertinent to the output of the c# method that i was demonstrating.
FWIW, given that determining whether leading and trailing white space happens to be pertinent would be a major challenge ... for that reason, in the future, for such a line, i'll either use a comment, or better still, include it in the middle of the test
output where it is likely to be more obvious to the reader.
thank you ... gerry
B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
Marked as answer by gerrylowry on May 03, 2012 04:44 PM
gerrylowry
All-Star
20577 Points
5721 Posts
found another bug in the forums.asp.net message editor ... leading empty line is lost
May 03, 2012 06:03 AM|LINK
while answering a question in the c# forum, in showing my test output, i noticed a line was dropped ... the first line of my test output was empty:
if put this in the Message editor's "insert code" window:
--------------------------------------------------------------
#
^Mr^John^Smith^
Mr%John%Smith
Mr%John%Smith
Hi,¿I¿am¿trying¿to¿convert¿space¿in¿a¿string¿into¿other¿characters.¿For¿example:¿input:¿"Mr¿John¿Smith"¿ouput¿"Mr%John%Smith".¿We¿need¿StringBuilder¿?¿Please¿advise.
--------------------------------------------------------------
i get this:
note the empty line was dropped.
g.
tmorton
All-Star
56560 Points
9752 Posts
ASPInsiders
Moderator
Re: found another bug in the forums.asp.net message editor ... leading empty line is lost
May 03, 2012 04:09 PM|LINK
Thanks for the report. However, that behavior is by design, to remove unneeded extraneous whitespace.
ASP.NET/IIS.NET Website Manager, Neudesic
gerrylowry
All-Star
20577 Points
5721 Posts
Re: found another bug in the forums.asp.net message editor ... leading empty line is lost
May 03, 2012 04:43 PM|LINK
@ tmorton
you're welcome ... my concern is that in this case, the white space was pertinent to the output of the c# method that i was demonstrating.
FWIW, given that determining whether leading and trailing white space happens to be pertinent would be a major challenge ... for that reason, in the future, for such a line, i'll either use a comment, or better still, include it in the middle of the test output where it is likely to be more obvious to the reader.
thank you ... gerry