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

Spaces are getting inserted before and after token expressions in output #7

Open
sdondley opened this issue Jan 10, 2022 · 1 comment

Comments

@sdondley
Copy link

If I have this simple template:

X<%=$foo%>X

And I run it through the module, this gets output:

X FooBar X

I don't want spaces before and after FooBar.

@sdondley
Copy link
Author

sdondley commented Jan 10, 2022

OK, found a solution.

Instead of &subroutine(|c)), template() function should return (&subroutine(|c)).join;

Alternatively, instead of hacking the module, you can throw a join onto the value returned by the template function.

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

1 participant