Insert new line at the end of file
See original GitHub issueHi. I am a regular user of this tool. Thank you all for your work. This time I have a question. I want to insert one blank line at the end of an auto-generated file. I put the blank line in the markdown, but it does not work as expected. For example, writing a markdown like the one below will not insert a blank line at the end of the auto-generated file.
import type { VFC } from "react";
export const Profile: VFC = () => {
return <main>Profile</main>;
};
# newline
My project requires a blank line at the end of the file, so I would like to insert it somehow. Is there any way to solve this?
Your Environment
- OS: MacOS Monterey 12.5
- scaffdog version: 2.0.3
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
How to add a newline to the end of a file? - Unix StackExchange
The code works because sed by default appends a newline to its output if it is not already there. The code "$a\" just...
Read more >Add new line character at the end of file in bash - Stack Overflow
How can I use bash command line to add new line character at the end of file named file.txt . I tried use...
Read more >How to Append Text to End of File in Linux - Tecmint
Append Text Using >> Operator ... The >> operator redirects output to a file, if the file doesn't exist, it is created but...
Read more >No Newline at End of File - Thoughtbot
A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character....
Read more >How to force newline at end of files and why you should do it
So if you don't end a file with a newline, most UNIX tools will show you have one less line. This answer goes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wadackel
Thank you very much!!
The philosophy is so great. I like this tool more now!
I will report back to you if I hear anything else. Thank you very much for your cooperation.
@watagit
Released as v2.1.1 🚀 Try this version when you have time.