question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Insert new line at the end of file

See original GitHub issue

Hi. 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:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
watagitcommented, Sep 5, 2022

@wadackel

Thank you very much!!

Since the philosophy of scaffdog is to output the given input in a straightforward manner

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.

0reactions
wadackelcommented, Sep 4, 2022

@watagit

Released as v2.1.1 🚀 Try this version when you have time.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found