mirror of
https://github.com/misiektoja/spotify_profile_monitor.git
synced 2026-04-25 23:15:57 +03:00
[PR #22] [MERGED] Added feature to limit line widths printed to screen to avoid line wrapping #30
Labels
No labels
Stale
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify_profile_monitor#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/misiektoja/spotify_profile_monitor/pull/22
Author: @tomballgithub
Created: 7/4/2025
Status: ✅ Merged
Merged: 7/6/2025
Merged by: @misiektoja
Base:
dev← Head:truncate📝 Commits (1)
69be831Added feature to limit line widths printed to screen to avoid line wrapping📊 Changes
1 file changed (+43 additions, -2 deletions)
View changed files
📝
spotify_profile_monitor.py(+43 -2)📄 Description
I developed some simple code to limit the line widths printed to the screen to avoid line wrapping.
I find this useful when running a vertical split screen with two instances running.
I've tested it under Windows in both a standard command window and Terminal with a split screen.
The code is operating system independent.
A value of 999 will autodetect the screen width and use that width for the truncation
Note: Logging is not impacted, and the full strings are written to the log file.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.