Skip to content

Commit

Permalink
BR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Oct 9, 2010
1 parent 337246b commit 100b69e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/domplate.js
Expand Up @@ -528,10 +528,14 @@ DomplateTag.prototype =
}
topBlock.push(', "\\""');
}
topBlock.push(',">"');

this.generateChildMarkup(topBlock, topOuts, blocks, info);
topBlock.push(',"</', this.tagName, '>"');
if(this.tagName=="br") {
topBlock.push(',"/>"');
} else {
topBlock.push(',">"');
this.generateChildMarkup(topBlock, topOuts, blocks, info);

topBlock.push(',"</', this.tagName, '>"');
}
},

generateChildMarkup: function(topBlock, topOuts, blocks, info)
Expand Down

0 comments on commit 100b69e

Please sign in to comment.