diff --git a/api/src/Storage/Merge.php b/api/src/Storage/Merge.php index ceba5e6224..cc87d4c55d 100644 --- a/api/src/Storage/Merge.php +++ b/api/src/Storage/Merge.php @@ -1132,6 +1132,11 @@ abstract class Merge { $replacements = str_replace(array('&',"\r","\n",'&lt;','&gt;'),array('&','',$break,'<','>'),$replacements); } + else + { + // Need to at least handle new lines, or it'll be run together on one line + $replacements = str_replace(array("\r","\n"),array('',$break),$replacements); + } } if ($mimetype == 'application/x-yaml') {