summaryrefslogtreecommitdiff
path: root/library/WT/Note.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-07-29 21:55:58 +0000
committerfisharebest <fisharebest@gmail.com>2013-07-29 21:55:58 +0000
commite492e1bed91b5e241af4ce095cba3d39d69ef774 (patch)
tree091db080e0c8e222819d1ae47055675e44e516bc /library/WT/Note.php
parent00d51fff964a3c2abce5a45973cadb0afb9da32e (diff)
downloadwebtrees-e492e1bed91b5e241af4ce095cba3d39d69ef774.tar.gz
webtrees-e492e1bed91b5e241af4ce095cba3d39d69ef774.tar.bz2
webtrees-e492e1bed91b5e241af4ce095cba3d39d69ef774.zip
Shared notes with blank lines truncated
Diffstat (limited to 'library/WT/Note.php')
-rw-r--r--library/WT/Note.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/WT/Note.php b/library/WT/Note.php
index c9524b286f..0e44868bbc 100644
--- a/library/WT/Note.php
+++ b/library/WT/Note.php
@@ -35,8 +35,8 @@ class WT_Note extends WT_GedcomRecord {
// Get the text contents of the note
public function getNote() {
- if (preg_match('/^0 @' . WT_REGEX_TAG . '@ NOTE ?(.*(?:\n1 CONT .*)*)/', $this->gedcom, $match)) {
- return str_replace("\n1 CONT ", "\n", $match[1]);
+ if (preg_match('/^0 @' . WT_REGEX_TAG . '@ NOTE ?(.*(?:\n1 CONT ?.*)*)/', $this->gedcom, $match)) {
+ return preg_replace("/\n1 CONT ?/", "\n", $match[1]);
} else {
return null;
}