Skip to content

Commit

Permalink
Merge pull request #76 from daniel-franz/patch-4
Browse files Browse the repository at this point in the history
fix multiline elements
  • Loading branch information
Ralph Holzmann committed Aug 14, 2012
2 parents 6404d02 + 3eb05ec commit 4aae36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/ejs/ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ steal('can/util','can/view', 'can/util/string', 'can/observe/compute').then(func
default:
// Track the current tag
if(lastToken === '<'){
tagName = token.split(' ')[0];
tagName = token.split(/\s/)[0];
// If
if( tagName.indexOf("/") === 0 && tagNames.pop() === tagName.substr(1) ) {
tagName = tagNames[tagNames.length-1]|| tagName.substr(1)
Expand Down

0 comments on commit 4aae36e

Please sign in to comment.