From 88aa7b7a0c6411d5827c2bda74be6a119036efec Mon Sep 17 00:00:00 2001 From: anaggh Date: Thu, 5 Oct 2017 20:37:24 +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 +}