How do you remove the last (empty) line in Geany?

0

I have a project which keeps complaining about the trailing line Geany adds to every file I create. It's in everything: html, js, json, python. At first it was cute and endearing. Now it's just flat-out annoying.

Background: I'm writing a Mozilla extension and it won't load the manifest file or the js file because there's an empty line at the end of each file. Finally had to open it in Notepad++.

KI4JGT

Posted 2018-03-31T12:03:56.897

Reputation: 101

“I have a project which keeps complaining…” When you say the project is complaining, what exactly is complaining? Geary? Or the code you are attempting to run? There’s no reason, HTML, JavaScript, JSON or Python would seriously complain about empty lines at the end of them. – JakeGould – 2018-03-31T12:21:50.370

I'm writing a Mozilla extension and it won't load the manifest file or the js file because there's an empty line at the end of each file. Finally had to open it in Notepad++. – KI4JGT – 2018-03-31T12:28:01.703

Answers

2

How do you remove the last (empty) line in Geany?

You will likely want to open EditPreferences ( Ctrl + Alt + P) and under FilesSaving Files uncheck Ensure new line at file end:

Geany Preferences

Anaksunaman

Posted 2018-03-31T12:03:56.897

Reputation: 9 278