]> git.mxchange.org Git - friendica.git/commitdiff
some simplification
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 9 Aug 2017 17:19:42 +0000 (19:19 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 9 Aug 2017 17:19:42 +0000 (19:19 +0200)
library/markdown.php

index bf7ec4095b189ee5a897bcbd1a97b61aec1e7b8c..8def53fcbdaba4906f5ea5bf9403a97795079d29 100644 (file)
@@ -29,11 +29,7 @@ function Markdown($text, $hardwrap = true) {
        $stamp1 = microtime(true);
 
        $MarkdownParser = new MarkdownExtra();
-       if ($hardwrap) {
-               $MarkdownParser->hard_wrap = true;
-       } else {
-               $MarkdownParser->hard_wrap = false;
-       }
+       $MarkdownParser->hard_wrap = $hardwrap;
        $html = $MarkdownParser->transform($text);
 
        $a->save_timestamp($stamp1, "parser");