From 147bfb05761d37eb7c8292b80ce4d22eefaee9a6 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Wed, 9 Aug 2017 19:19:42 +0200 Subject: [PATCH] some simplification --- library/markdown.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/library/markdown.php b/library/markdown.php index bf7ec4095b..8def53fcbd 100644 --- a/library/markdown.php +++ b/library/markdown.php @@ -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");