htmljs-parser 5.4.3 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -6
- package/dist/index.mjs +8 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1378,12 +1378,14 @@ var CONCISE_HTML_CONTENT = {
|
|
|
1378
1378
|
parentTag = this.activeTag;
|
|
1379
1379
|
}
|
|
1380
1380
|
if (!parentTag && curIndent) {
|
|
1381
|
-
|
|
1382
|
-
this.
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1381
|
+
if (code !== 47 /* FORWARD_SLASH */) {
|
|
1382
|
+
this.emitError(
|
|
1383
|
+
this.pos,
|
|
1384
|
+
7 /* INVALID_INDENTATION */,
|
|
1385
|
+
"Line has extra indentation at the beginning"
|
|
1386
|
+
);
|
|
1387
|
+
return;
|
|
1388
|
+
}
|
|
1387
1389
|
}
|
|
1388
1390
|
if (parentTag) {
|
|
1389
1391
|
if (parentTag.type === 1 /* text */ && code !== 45 /* HTML_BLOCK_DELIMITER */) {
|
package/dist/index.mjs
CHANGED
|
@@ -1353,12 +1353,14 @@ var CONCISE_HTML_CONTENT = {
|
|
|
1353
1353
|
parentTag = this.activeTag;
|
|
1354
1354
|
}
|
|
1355
1355
|
if (!parentTag && curIndent) {
|
|
1356
|
-
|
|
1357
|
-
this.
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1356
|
+
if (code !== 47 /* FORWARD_SLASH */) {
|
|
1357
|
+
this.emitError(
|
|
1358
|
+
this.pos,
|
|
1359
|
+
7 /* INVALID_INDENTATION */,
|
|
1360
|
+
"Line has extra indentation at the beginning"
|
|
1361
|
+
);
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1362
1364
|
}
|
|
1363
1365
|
if (parentTag) {
|
|
1364
1366
|
if (parentTag.type === 1 /* text */ && code !== 45 /* HTML_BLOCK_DELIMITER */) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "htmljs-parser",
|
|
3
3
|
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.5.0",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@changesets/changelog-github": "^0.4.7",
|
|
7
7
|
"@changesets/cli": "^2.25.2",
|