Why does StringBuilder.AppendLine not add a new line with some strings?

后端 未结 6 1021
耶瑟儿~
耶瑟儿~ 2021-01-03 17:43

I\'m trying to use stringbuilder to create a body of string to be used in a text (not HTML) email. However some lines (where i include dynamic data, a new line is not added,

6条回答
  •  长情又很酷
    2021-01-03 18:30

    Windows 10 Insider preview Build 15007. The Default Line Terminator and the Environment.NewLine are both "\n". To use "\r\n" I had to create a string constant and use it instead.

提交回复
热议问题