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

[BUGFIX] whitespace error with frontmatter section #440

Open
David200197 opened this issue Jan 12, 2024 · 0 comments
Open

[BUGFIX] whitespace error with frontmatter section #440

David200197 opened this issue Jan 12, 2024 · 0 comments

Comments

@David200197
Copy link

David200197 commented Jan 12, 2024

Hi, I'm not very good at English, so I'll try to point out the error I found. In frontmatter section, if you leave spaces between line breaks with the "---" symbols, it does not render the template:

// in this case it doesn't work
---                      <----------- whitespace in this line
to: app/<%= name %>/create-<%= name %>-handler.model.ts
---
// in this case it work (no whitespace in next line)
---
to: app/<%= name %>/create-<%= name %>-handler.model.ts
---

I don't know how this library works behind the scenes, but maybe with a .trim(), this error will be solved.

PD: Very good library, I'm using it and it's helping me a lot :)

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