Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Added spacing to link markup in Zepto\Helper::link_for() and upda…
Browse files Browse the repository at this point in the history
…ted test class
  • Loading branch information
hassankhan committed Feb 13, 2014
1 parent 13bb108 commit 47fa98d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Zepto/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<a href="%s">' . $link . "</a>", $url);
return sprintf('<a href="%s"> ' . $link . ' </a>', $url);
}

}
2 changes: 1 addition & 1 deletion tests/Zepto/HelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function testLinkFor()
$zepto = new Zepto;
$helper = new Helper($zepto->app);
$actual = $helper->link_for('index.md');
$expected = '<a href="http://localhost:8888/zepto/">Welcome</a>';
$expected = '<a href="http://localhost:8888/zepto/"> Welcome </a>';

$this->assertEquals($expected, $actual);
}
Expand Down

0 comments on commit 47fa98d

Please sign in to comment.