-
Notifications
You must be signed in to change notification settings - Fork 36
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
Unable to specify a new line after a header using a template file #37
Comments
If it understand the linked comment correctly, the newline must be in-between the comment and the first line, rather than within the comment itself. Maybe I'm misunderstanding though? |
Yes. If your file is
and your license is (see blank line beneath final comment)
your file would become
The trailing line is not preserved. |
Same issue here, the template file is trimmed by the comment parser:
This makes it impossible to force new lines at the end of the comment while using a template file. |
I am trying to use a template header from file but due to the fact that it trims when loading from file it is removing the trailing new lines which I require due to microsoft/TypeScript#12307 (comment). I am also unable to specify a newline going the route with a single argument.
It would be good to either not trim the comment when loading from a file (though this would be a major breaking change as some users may depend on it) or maybe support adding newlines when using the template file?
The text was updated successfully, but these errors were encountered: