]> git.mxchange.org Git - friendica.git/commitdiff
Added spaces
authorMichael <heluecht@pirati.ca>
Mon, 16 Oct 2017 20:55:37 +0000 (20:55 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 16 Oct 2017 20:55:37 +0000 (20:55 +0000)
include/html2bbcode.php

index e7e253e81ba12d19be18ed076181a93c25ddf6a4..e90f6c10949dedb6f2381a6b798ae8d2efc8e22d 100644 (file)
@@ -90,10 +90,10 @@ function html2bbcode($message, $basepath = '')
                function ($matches) use (&$codeblocks) {
                        $return = '[codeblock-' . count($codeblocks) . ']';
 
-           $prefix = '[code]';
-           if ($matches[1] != '') {
-               $prefix = '[code=' . $matches[1] . ']';
-           }
+                       $prefix = '[code]';
+                       if ($matches[1] != '') {
+                               $prefix = '[code=' . $matches[1] . ']';
+                       }
                        $codeblocks[] = $prefix . $matches[2] . '[/code]';
                        return $return;
                }
@@ -313,10 +313,10 @@ function html2bbcode($message, $basepath = '')
        // Restore code blocks
        $message = preg_replace_callback('#\[codeblock-([0-9]+)\]#iU',
                function ($matches) use ($codeblocks) {
-           $return = '';
-           if (isset($codeblocks[intval($matches[1])])) {
-               $return = $codeblocks[$matches[1]];
-           }
+                       $return = '';
+                       if (isset($codeblocks[intval($matches[1])])) {
+                               $return = $codeblocks[$matches[1]];
+                       }
                        return $return;
                }
        , $message);