Skip to content

Fix: Suppress a blank line after triggered echo with newline suffix#7923

Merged
vadi2 merged 2 commits intoMudlet:developmentfrom
Harrison-Teeg:suppress-duplicate-linebreaks
Jul 2, 2025
Merged

Fix: Suppress a blank line after triggered echo with newline suffix#7923
vadi2 merged 2 commits intoMudlet:developmentfrom
Harrison-Teeg:suppress-duplicate-linebreaks

Conversation

@Harrison-Teeg
Copy link
Copy Markdown
Contributor

Brief overview of PR changes/additions

Added a check for whether new lines were added from trigger processing/wrapping and if the last line in the buffer is blank. If new lines were added and the last line in the buffer is empty, TBuffer::translateToPlainText will skip appending an additional blank line.

Motivation for adding to Mudlet

A discord user mentioned the wrap-overhaul causing their echoes to behave differently.

Other info (issues closed, discussion etc)

4.19.1:
image

After PR #7714:
image

After this PR:
image

@Harrison-Teeg Harrison-Teeg requested a review from a team as a code owner July 1, 2025 19:06
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jul 1, 2025

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

Copy link
Copy Markdown
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@vadi2 vadi2 merged commit 1384e45 into Mudlet:development Jul 2, 2025
11 checks passed
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