Raven db 1498

added newline support in editDocument