B-) Gerry Lowry, Chief Training Architect, Paradigm Mentors Learning never ends... +1 705-999-9195 wasaga beach, ontario canada TIMTOWTDI =.there is more than one way to do it
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-) Gerry Lowry, Chief Training Architect, Paradigm Mentors Learning never ends... +1 705-999-9195 wasaga beach, ontario canada TIMTOWTDI =.there is more than one way to do it
Star
14297 Points
5797 Posts
found another bug in the forums.asp.net message editor ... leading empty line is lost
May 03, 2012 02:03 AM|gerrylowry|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.
All-Star
163349 Points
9802 Posts
ASPInsiders
Dev Team
Moderator
Re: found another bug in the forums.asp.net message editor ... leading empty line is lost
May 03, 2012 12:09 PM|tmorton|LINK
Thanks for the report. However, that behavior is by design, to remove unneeded extraneous whitespace.
ASP.NET Website Manager, Neudesic
Star
14297 Points
5797 Posts
Re: found another bug in the forums.asp.net message editor ... leading empty line is lost
May 03, 2012 12:43 PM|gerrylowry|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