Permalink
Browse files

BR fix

  • Loading branch information...
1 parent 337246b commit 100b69e7244a73934140cdef65b87fa141101329 @cadorn committed Oct 9, 2010
Showing with 8 additions and 4 deletions.
  1. +8 −4 lib/domplate.js
View
@@ -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)

0 comments on commit 100b69e

Please sign in to comment.