Merge pull request #31 from nextcloud/line-breaks

Support for Windows (and other) line-breaks
This commit is contained in:
Hendrik Leppelsack 2016-12-14 22:19:31 +01:00 committed by GitHub
commit 8449fd941f
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class NotesService {
$file = $this->getFileById($folder, $id);
// generate content from the first line of the title
$splitContent = explode("\n", $content);
$splitContent = preg_split("/\R/", $content, 2);
$title = $splitContent[0];
if(!$title) {