Have tried both "\r\n"
and environment.newline in VS2003
to get newline. We are writing text in stringbuilder using "\r\n"
or environment.newline and saving it in IO file. NewLine break is not working in the file when it is opened in IE11 whereas it works if it is opened in notepad. This also works if it is opened in older version of IE8
.
The part of the code is:
StringBuilder cdataDescription = new StringBuilder();
cdataDescription.Append("* This is an install activity which passed through SYR.").Append(newline);
cdataDescription.Append("\r\n");
//For CSI
cdataDescription.Append(" Please dispatch to the IBG * ");
cdataDescription.Append("\r\n");
cdataDescription.AppendLine();
cdataDescription.Append("test");
cdataDescription.Append("\r\n");
cdataDescription.Append("General Information");
cdataDescription.Append("\r\n");
cdataDescription.Append("---------------------------------------");
cdataDescription.Append("\r\n");
string result = string.empty;
result = cdataDescription.ToString();
return result;
for new line if saving it to .html file – shreesha Sep 23 '15 at 11:59
` tag. – Craig W. Sep 25 '15 at 17:03