diff --git a/library/Zepto/Helper.php b/library/Zepto/Helper.php index 9e0a8e0..384397d 100644 --- a/library/Zepto/Helper.php +++ b/library/Zepto/Helper.php @@ -172,7 +172,7 @@ public function link_for($file_name) // Get file title and URL and return $link = $content[$file_name]['meta']['title']; $url = $this->url_for($file_name); - return sprintf('' . $link . "", $url); + return sprintf(' ' . $link . ' ', $url); } } diff --git a/tests/Zepto/HelperTest.php b/tests/Zepto/HelperTest.php index e834d37..0da0c02 100644 --- a/tests/Zepto/HelperTest.php +++ b/tests/Zepto/HelperTest.php @@ -150,7 +150,7 @@ public function testLinkFor() $zepto = new Zepto; $helper = new Helper($zepto->app); $actual = $helper->link_for('index.md'); - $expected = 'Welcome'; + $expected = ' Welcome '; $this->assertEquals($expected, $actual); }