Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed Text.from_ansi() removing trailing line break. #3793

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

Open
kmvanbrunt wants to merge 3 commits into Textualize:master
base: master
Choose a base branch
Loading
from kmvanbrunt:from_ansi_newline

Conversation

Copy link

@kmvanbrunt kmvanbrunt commented Jul 14, 2025
edited
Loading

Type of changes

  • Bug fix
  • Tests

Checklist

  • I've run the latest black with default args on new code.
  • I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
  • I've added tests for new code.
  • I accept that @willmcgugan may be pedantic in the code review.

Description

Fixes #3577

Ensures that Text.from_ansi() converts a trailing line break to a newline character instead of removing it.

tleonhardt reacted with thumbs up emoji
@kmvanbrunt kmvanbrunt changed the title (削除) Fixed issue where Text.from_ansi() was removing trailing line breaks. (削除ここまで) (追記) Fixed issue where Text.from_ansi() was removing ending line break. (追記ここまで) Jul 14, 2025
@kmvanbrunt kmvanbrunt changed the title (削除) Fixed issue where Text.from_ansi() was removing ending line break. (削除ここまで) (追記) Fixed Text.from_ansi() removing a trailing newline. (追記ここまで) Aug 19, 2025
@kmvanbrunt kmvanbrunt marked this pull request as draft August 20, 2025 00:36
@kmvanbrunt kmvanbrunt changed the title (削除) Fixed Text.from_ansi() removing a trailing newline. (削除ここまで) (追記) Fixed Text.from_ansi() removing a trailing line break. (追記ここまで) Aug 20, 2025
@kmvanbrunt kmvanbrunt changed the title (削除) Fixed Text.from_ansi() removing a trailing line break. (削除ここまで) (追記) Fixed Text.from_ansi() removing trailing line break. (追記ここまで) Aug 20, 2025
@kmvanbrunt kmvanbrunt marked this pull request as ready for review August 20, 2025 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[BUG] Trailing line break removed by Text.from_ansi().

1 participant

AltStyle によって変換されたページ (->オリジナル) /