Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

hoot-w00t/whitespace-remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whitespaces Remover

What it does

This Python program removes white spaces from your text files, code, etc.

White spaces are those little extra spaces at the end of your lines that you don't see.

An example white space

Installation

You need Python 3.6+ to run this program.

You can install the dependencies through PyPI: python3 -m pip install -r requirements.txt --user

If you want to you can install this program with the install.sh script (for Linux).

sudo ./install.sh

You can also uninstall it using the uninstall.sh script.

Usage

-d or --dry-run executes the program but doesn't write anything to the files.

-l or --lines displays lines that contain a whitespace.

-b or --backup backup each file before processing it. (with a .backup extension)

-f or --force process files that do not have "safe" extensions, this is to prevent running the program with * and breaking your folder.

--safe-extensions will display a list of the extensions considered safe.

Safe extensions

Note: More extensions will come over time.

These are the extensions considered safe: .c, .h, .cpp, .py, .cs, .class, .java, .sh, .swift, .vb, .asp, .aspx, .css, .html, .htm, .php, .js, .jsp, .rss, .xml, .json, .rst, .md, .txt

About

Remove whitespaces from your source files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published