|
@@ -46,7 +46,7 @@ discard block |
|
|
block discarded – undo |
|
46
|
46
|
// Normalize the line breaks |
|
47
|
47
|
$text = str_replace(["\n", "\r\r\n"], self::RFC2455_EOL, $text); |
|
48
|
48
|
// Handle rich text field output, such as from Redactor, which may have line or paragraph breaks |
|
49
|
|
- $text = str_replace(["</p>\r", "</P>\r"], self::RFC2455_LITERAL_NEWLINE.self::RFC2455_LITERAL_NEWLINE, $text); |
|
|
49
|
+ $text = str_replace(["</p>\r", "</P>\r"], self::RFC2455_LITERAL_NEWLINE . self::RFC2455_LITERAL_NEWLINE, $text); |
|
50
|
50
|
$text = str_replace(["<br>\r", "<BR>\r", "<br />\r", "<BR />\r"], self::RFC2455_LITERAL_NEWLINE, $text); |
|
51
|
51
|
// Split the text into separate lines |
|
52
|
52
|
$lines = explode(self::RFC2455_EOL, $text); |
|
@@ -99,6 +99,6 @@ discard block |
|
|
block discarded – undo |
|
99
|
99
|
$lines[] = $value; |
|
100
|
100
|
} |
|
101
|
101
|
|
|
102
|
|
- return implode(self::RFC2455_EOL.self::RFC2455_TAB, $lines); |
|
|
102
|
+ return implode(self::RFC2455_EOL . self::RFC2455_TAB, $lines); |
|
103
|
103
|
} |
|
104
|
104
|
} |
Please login to merge, or discard this patch.