Skip to content

Commit

Permalink
Fix issue w/ self-closing then closing of same type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Feb 12, 2021
1 parent 8b68556 commit 178419f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.0.3 - 2020-02-12
### Fixed
- Fix issue when including a self-closing and closed tag of the same type one
after the other

## 1.0.2 - 2020-02-12
### Fixed
- Fix issue with hyphens in endx names
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ether/atom",
"description": "Adding enhanced modularity to Craft CMS Twig templating",
"version": "1.0.2",
"version": "1.0.3",
"type": "craft-plugin",
"license": "MIT",
"minimum-stability": "dev",
Expand Down
2 changes: 1 addition & 1 deletion src/web/twig/tokenparsers/AtomTokenParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private function _lookForClosing (TokenStream $stream, string $handle): bool

// If we don't have a matching opener, that means
// this closing tag is ours.
return ($i === false && $endName === $handle) || !empty($openers);
return ($i === false && $endName === $handle);
}
}
}
Expand Down

0 comments on commit 178419f

Please sign in to comment.