Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add space after comma #134

Open
sindresorhus opened this issue Aug 17, 2011 · 2 comments
Open

Add space after comma #134

sindresorhus opened this issue Aug 17, 2011 · 2 comments

Comments

@sindresorhus
Copy link

If I try to print an array, jQuery-tmpl automagically joins the strings with comma. The problem is the missing whitespace after comma. I would like "john, doe, is, unknown" instead of the current "john,doe,is,unknown".

@patridge
Copy link

I put together a proof-of-concept for this issue on jsFiddle, though I am not sure how you set your template up for omitting the terminating comma.

As well, there is a work-around in there for getting by until a better solution is found. The work-around revolves around rendering some a string variable after each item, but it doesn't handle omitting the terminating comma either.

${$data}${", "}

@rdworth
Copy link
Contributor

rdworth commented Oct 8, 2011

Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants