[PR #22] [MERGED] Added feature to limit line widths printed to screen to avoid line wrapping #30

Closed
opened 2026-02-27 20:07:47 +03:00 by kerem · 0 comments
Owner

📋 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: devHead: truncate


📝 Commits (1)

  • 69be831 Added 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.

## 📋 Pull Request Information **Original PR:** https://github.com/misiektoja/spotify_profile_monitor/pull/22 **Author:** [@tomballgithub](https://github.com/tomballgithub) **Created:** 7/4/2025 **Status:** ✅ Merged **Merged:** 7/6/2025 **Merged by:** [@misiektoja](https://github.com/misiektoja) **Base:** `dev` ← **Head:** `truncate` --- ### 📝 Commits (1) - [`69be831`](https://github.com/misiektoja/spotify_profile_monitor/commit/69be831f971155c7c9c53147a2985e6c7efa4c3d) Added feature to limit line widths printed to screen to avoid line wrapping ### 📊 Changes **1 file changed** (+43 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `spotify_profile_monitor.py` (+43 -2) </details> ### 📄 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.** --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:07:47 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify_profile_monitor#30
No description provided.