edge-lexer
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -145,2 +145,6 @@ "use strict"; | ||
if (this.openedTags.length) { | ||
const latestTag = this.openedTags[this.openedTags.length - 1]; | ||
if (tag.type === 'newline' && !latestTag.children.length) { | ||
return; | ||
} | ||
this.openedTags[this.openedTags.length - 1].children.push(tag); | ||
@@ -147,0 +151,0 @@ return; |
@@ -0,1 +1,11 @@ | ||
<a name="2.0.2"></a> | ||
## [2.0.2](https://github.com/edge-js/edge-lexer/compare/v2.0.1...v2.0.2) (2018-11-09) | ||
### Bug Fixes | ||
* **tokenizer:** do not add newline as first child for the tag ([69677e8](https://github.com/edge-js/edge-lexer/commit/69677e8)) | ||
<a name="2.0.1"></a> | ||
@@ -2,0 +12,0 @@ ## [2.0.1](https://github.com/edge-js/edge-lexer/compare/v2.0.0...v2.0.1) (2018-11-08) |
{ | ||
"name": "edge-lexer", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Parses raw markup files to converts them to Edge tokens", | ||
@@ -5,0 +5,0 @@ "main": "build/src/Tokenizer/index.js", |
@@ -355,6 +355,2 @@ # Edge lexer | ||
{ | ||
"type": "newline", | ||
"line": 1 | ||
}, | ||
{ | ||
"type": "raw", | ||
@@ -361,0 +357,0 @@ "value": "<h2> Hello ", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30668
535
413