[web-news] master: Fix comment, it's actually Fastmail-generated HTML for that line
| From: | Jim Winstead | Date: | Fri, 30 Aug 2024 01:23:30 +0000 |
| Subject: | [web-news] master: Fix comment, it's actually Fastmail-generated HTML for that line | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-32040@lists.php.net to get a copy of this message | ||
Author: Jim Winstead (jimwins)
Date: 2024-08-29T18:22:19-07:00
Commit: https://github.com/php/web-news/commit/1fb08a289fb2d2174a92fe06e9c4c7789cae0ae2
Raw diff: https://github.com/php/web-news/commit/1fb08a289fb2d2174a92fe06e9c4c7789cae0ae2.diff
Fix comment, it's actually Fastmail-generated HTML for that line
Changed paths:
M article.php
Diff:
diff --git a/article.php b/article.php
index f9ece34..244f93b 100644
--- a/article.php
+++ b/article.php
@@ -129,7 +129,7 @@
* should be totally safe because all of the text get re-encoded
* later.
*/
- // This makes HTML from Apple's Mail app retain paragraph breaks
+ // This makes HTML from Fastmail retain paragraph breaks
$text = preg_replace('#<div><br></div>#', "\n\n",
$mail['html']);
// And this avoids extra linebreaks from another example (Android?)
$text = preg_replace("#\n<br>\n#", "\n",
$mail['html']);