Skip to content

Commit

Permalink
fixed sring concatenation bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lvivski committed Jun 28, 2012
1 parent d8281d3 commit 91cef6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parser.dart
Expand Up @@ -100,7 +100,7 @@ class Parser {
get tag() {
String tagName = next['val'];
bool selfClosing = Lexer.selfClosingTags.indexOf(tagName) !== -1;
StringBuffer buff = new StringBuffer('\\n<${tagName}${attrs}' + (selfClosing ? '/>' : '>'));
StringBuffer buff = new StringBuffer('\\n<${tagName}${attrs}${selfClosing ? '/' : ''}>');
switch (peek['type']) {
case 'text':
buff.add(text);
Expand Down Expand Up @@ -217,7 +217,7 @@ class Parser {
next;
return expr;
default:
throw new Exception('unexpected ' + peek['type']);
throw new Exception('unexpected ${peek['type']}');
}
}

Expand Down

0 comments on commit 91cef6a

Please sign in to comment.