Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature Request: Whitespace Minification and Line Merging Options #130

Copy link
Copy link
@hunyanjie

Description

@hunyanjie
Issue body actions

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!

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.