I want to insert document to the ravenDb. It has property named “Description:
I’ve written in description-field something like this:
1)first row
2 second row
and string Description looks like:
"1)first row\r\n2 second row"
For sure that string with that value is inputing to the ravenDB
But document in raven db looks like:
"1)first row 2 second row"
so when it is displayed looks like:
"1)first row 2 second row"
so it looks ugly.
How can i deal with it?
Kamil, RavenDBs management UI is not intended to be used by end users. Instead, it is a tool that helps you while developing an application on top of raven. That’s why there is no need for the editor to display special characters, because you generally want to view the whole json document there.
However, don’t worry – your \r\n characters are preserved when you load the document back into an instanve of a class.