From: Michael <heluecht@pirati.ca>
Date: Tue, 8 Mar 2022 19:58:55 +0000 (+0000)
Subject: Replace abstract content with a space to prevent missing spaces
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e0295abdabe23476f326621e0321ef826756f53e;p=friendica.git

Replace abstract content with a space to prevent missing spaces
---

diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php
index e676673fc1..2c17663c1e 100644
--- a/src/Content/Text/BBCode.php
+++ b/src/Content/Text/BBCode.php
@@ -2086,8 +2086,8 @@ class BBCode
 	public static function stripAbstract($text)
 	{
 		DI::profiler()->startRecording('rendering');
-		$text = preg_replace("/[\s|\n]*\[abstract\].*?\[\/abstract\][\s|\n]*/ism", '', $text);
-		$text = preg_replace("/[\s|\n]*\[abstract=.*?\].*?\[\/abstract][\s|\n]*/ism", '', $text);
+		$text = preg_replace("/[\s|\n]*\[abstract\].*?\[\/abstract\][\s|\n]*/ism", ' ', $text);
+		$text = preg_replace("/[\s|\n]*\[abstract=.*?\].*?\[\/abstract][\s|\n]*/ism", ' ', $text);
 
 		DI::profiler()->stopRecording();
 		return $text;