diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-29 21:55:58 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-29 21:55:58 +0000 |
| commit | e492e1bed91b5e241af4ce095cba3d39d69ef774 (patch) | |
| tree | 091db080e0c8e222819d1ae47055675e44e516bc /library/WT/Note.php | |
| parent | 00d51fff964a3c2abce5a45973cadb0afb9da32e (diff) | |
| download | webtrees-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.php | 4 |
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; } |
