Skip to content
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

fix: adjust calculation for number of lines in a notification message #828

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

Rolv-Apneseth
Copy link
Contributor

Fixes #822 by fixing the width division calculation (+1) and taking lines within the message content itself into account

@sxyazi
Copy link
Owner

sxyazi commented Mar 19, 2024

Thanks for the PR, but I'm not quite sure why we need to add +1 here. Could you please explain a bit?

@sxyazi
Copy link
Owner

sxyazi commented Mar 19, 2024

Ah I see, never mind.

This perfectly solves it, thank you!

@Rolv-Apneseth
Copy link
Contributor Author

No worries, happy to help where I can

@sxyazi sxyazi merged commit 9918ceb into sxyazi:main Mar 20, 2024
5 checks passed
@Rolv-Apneseth Rolv-Apneseth deleted the fix_ya_notify branch March 21, 2024 14:02
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ya.notify API long string display bug
2 participants