Skip to content

Conversation

XR-stb
Copy link
Contributor

@XR-stb XR-stb commented Oct 2, 2025

Since the wrapTextToWidth function performs word segmentation based on spaces, some lines cannot be fully filled, which I think is not very reasonable. When viewing logs in the terminal, we need a more compact display of all log content. Moreover, due to word segmentation here, some lines may lose characters due to too many characters being inserted (both in the middle and at the end of the line).

Before Fix

The timestamp on the first line was wrongly wrapped, resulting in excessive blank content on the first line and the loss of all subsequent characters starting from the second line
image

After Fix

image

Before Fix

There are extra Spaces displayed on each line, which is extremely unattractive
image

After Fix

image

@destari destari merged commit 2b0f7b0 into control-theory:main Oct 2, 2025
@destari
Copy link
Contributor

destari commented Oct 2, 2025

Thanks for this PR!

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.

2 participants