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

\n's passed in context to a partial are replaced with \n\t\s\s #1216

Closed
jbsouvestre opened this issue May 3, 2016 · 3 comments
Closed

\n's passed in context to a partial are replaced with \n\t\s\s #1216

jbsouvestre opened this issue May 3, 2016 · 3 comments

Comments

@jbsouvestre
Copy link

Hello,

I have put together a jsbin to better reproduce my issue : https://jsbin.com/yodoyu/edit?html,js,output.

Basically the string value displays fine if I only pass it to a template, but all \n are replaced with \n\t\s\s if it is passed through a partial.

Thank you

@stevenvachon
Copy link

Your partial expression is indented within your template element.

@jbsouvestre
Copy link
Author

Ah thank you. It seems unlikely that my issue is caused by that in my setup so I'll reopen if I'm able to reproduce it

@stevenvachon
Copy link

Np. You could keep your indenting (for code quality) and try using whitespace control to remove the injected indenting:

{{~> partial}}

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

2 participants