Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Update compiler.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrupin committed Jan 30, 2019
1 parent 7790b07 commit d884e4b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ function parse(cv) {
case "abbr":
case "button":
case "li":
case "small":
case "b":
case "u":
switch(part[2]) {
case null:
case undefined:
Expand Down Expand Up @@ -144,15 +147,15 @@ function parse(cv) {
return stripEmpty`<!-- ${part[1]} -->`;
break;
case "end":
return `</${part[1]}>`;
return stripEmpty`</${part[1]}>`;
break;
case "":
return `${part[0]}`;
return stripEmpty`${part[0]}`;
break;
case undefined:
case null:
default:
return `${part[0]}`;
return stripEmpty`${part[0]}`;
break;
}
}
Expand Down

0 comments on commit d884e4b

Please sign in to comment.