From 860c005c9abbc2c6deb284ef16304ea56857ad3e Mon Sep 17 00:00:00 2001 From: anaggh Date: Thu, 5 Oct 2017 19:51:06 +0530 Subject: [PATCH] Improve parsing --- bl-kernel/page.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl-kernel/page.class.php b/bl-kernel/page.class.php index c4189816..5efdd1ad 100644 --- a/bl-kernel/page.class.php +++ b/bl-kernel/page.class.php @@ -81,7 +81,7 @@ class Page { // Remove "Content:" or "---" and keep next characters if there are $content[0] = substr($content[0], strpos($content[0], $styleTypeUsed) + strlen($styleTypeUsed)); - $content[0] = trim($content[0]); + $content[0] = ltrim($content[0]); // Join lines in one variable, this is RAW content from file $this->vars['contentRaw'] = implode($content); @@ -480,4 +480,4 @@ class Page { return $string ? implode(', ', $string) . ' ago' : 'Just now'; } -} \ No newline at end of file +}