Skip to content

Commit 178419f

Browse files
committed
Fix issue w/ self-closing then closing of same type
1 parent 8b68556 commit 178419f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.0.3 - 2020-02-12
2+
### Fixed
3+
- Fix issue when including a self-closing and closed tag of the same type one
4+
after the other
5+
16
## 1.0.2 - 2020-02-12
27
### Fixed
38
- Fix issue with hyphens in endx names

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ether/atom",
33
"description": "Adding enhanced modularity to Craft CMS Twig templating",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"type": "craft-plugin",
66
"license": "MIT",
77
"minimum-stability": "dev",

src/web/twig/tokenparsers/AtomTokenParser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private function _lookForClosing (TokenStream $stream, string $handle): bool
194194

195195
// If we don't have a matching opener, that means
196196
// this closing tag is ours.
197-
return ($i === false && $endName === $handle) || !empty($openers);
197+
return ($i === false && $endName === $handle);
198198
}
199199
}
200200
}

0 commit comments

Comments
 (0)