Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUGFIX] whitespace error with frontmatter section #440

@David200197

Description

@David200197

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions