BorisMoore / jquery-tmpl

The original official jQuery Templates plugin. This project was maintained by the jQuery team as an official jQuery plugin. It is no longer in active development, and has been superseded by JsRender.
3.23k stars 1.01k forks source link

Trailing whitespace #84

Closed BorisMoore closed 13 years ago

BorisMoore commented 13 years ago

Copied from https://github.com/nje/jquery-tmpl/issues#issue/27 Created 5 months ago by timmolendijk The following holds true:

$.tmpl("Name: ${name}, ", [{name: "Tim"}, {name: "Boris"}]).text() === "Name: Tim,Name: Boris,"

While I'd expected this to hold true instead:

$.tmpl("Name: ${name}, ", [{name: "Tim"}, {name: "Boris"}]).text() === "Name: Tim, Name: Boris, "

Hint: Note the space after the comma.