Category: My bugs
Lost escape sequences
When i deserialize a string type property which contents "rn" data, i’ve lost a ‘n'(‘new line’). As a result was text data’s bad formatting.
This problem was solved by replacing with the regular expression "(?<!\r)\n".
public string Note
{
get
{
//HACK: При сериализации символ rn заменяется на n
//восстанавливаем первоначальные значения
_note =
Regex.Replace(_note, "(?<!\r)\n", "rn");
return _note;
}
set { _note = value; }
}