Skip to content

low quality python script to fix trailing newlines, whitespaces in last lines etc.

Notifications You must be signed in to change notification settings

mwPandoraid/fixnewlines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

low quality tool for fixing newline issues

usage: fixnewlines.py ./

this program works recursively by default, checking and modifying every file in the directory tree

you can add ignored extensions to the ignored_extensions list in the source code

features:

  • makes sure file doesnt start with a newline
  • makes sure file ends with a newline
  • makes sure file doesnt end with trailing newlines

note: the -r (--recursive) flag is nonfunctional as of now, this tool only works in recursive mode.

warning: this program modifies file contents - make sure to have a backup just in case

About

low quality python script to fix trailing newlines, whitespaces in last lines etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages