Skip to content

Commit

Permalink
Fix img attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelfull committed May 29, 2018
1 parent a503d15 commit a9feb02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.0.1 - 2018-05-29
### Fixed
- Fixed missing whitespace between src and img attributes

## 1.0.0 - 2018-05-25
### Added
- Initial release
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "superbig/craft-url2png",
"description": "Lets you embed screenshots of webpages via the URL2PNG API.",
"type": "craft-plugin",
"version": "1.0.0",
"version": "1.0.1",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/variables/URL2PNGVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function img($settings = [])
{
$src = $this->_run($settings);
$attributes = $this->imgAttributes($settings);
$html = "<img src=\"{$src}\"{$attributes}>";
$html = "<img src=\"{$src}\" {$attributes}>";

return Template::raw($html);
}
Expand Down

0 comments on commit a9feb02

Please sign in to comment.