Skip to content

Feature: Wrap lines at fixed width #2059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

ThomasNotTom
Copy link

Description

This feature creates an operation, allowing the forceful line breaking to make lines of length n or smaller. It also allows for the removal of leading whitespace at the beginning of new lines to ensure every line begins on the far left.

This implements #2028

How it works

This works by looping over the input string in chunks of length n. If the remove leading whitespace boolean is true then get the length of the leading whitespace, remove it, then append on a chunk of the same size as the leading whitespace.

@ThomasNotTom ThomasNotTom changed the title Feature: Feature: Wrap lines after a certain number of characters Jun 6, 2025
@ThomasNotTom ThomasNotTom changed the title Feature: Wrap lines after a certain number of characters Feature: Wrap lines at fixed width Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant