Skip to content

Feature Request: Whitespace Minification and Line Merging Options #130

Description

@hunyanjie

Hi,

I hope the tool could support whitespace minification for each line of code, similar to what pyminifier does. For example, the original code:

def test(name):
    return f"Hello, {name}!"

name = input("Enter your name: ")
if name != "":
    print(test(name))
else:
    print("Please enter your name")

Should be minified to:

def test(name):
 return f"Hello, {name}!"
name=input("Enter your name: ")
if name!="":
 print(test(name))
else:
 print("Please enter your name")

Additionally, I would like to request two more features:

  1. Line Merging Option: It would be great if there could be an option to merge lines (default behavior could be to merge).

  2. Indentation Choice: It would be useful if users could choose whether to use tabs or spaces for indentation.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions