Skip to content

[Bug]: "Sort Lines" inserts additional blank lines #5963

Description

@geniuszxy

Notepad3 version

7.26.602.1

Build / architecture

Win32 (x86)

Windows version & build

Windows 10 22H2 19045.6282

Last known good Notepad3 version (regression only)

No response

Steps to reproduce

ssd-trans1.txt

When I perform the "Sort Lines" on the file above, additional blank lines will be inserted after certain specific lines. When the file is CRLF, an additional CR is inserted, and when the file is LF, an additional LF is inserted. (See actual behaviour for screenshots)

Expected behavior

Just sort lines.

Actual behavior

Image Image

Additional context

No response

Version & system info (paste from About dialog)


Confirmation

  • I searched existing issues and this is not a duplicate.
  • I can reproduce this on a clean install (or a fresh INI via Notepad3 /i), not only with my customized config.
  • If attaching Notepad3.ini: I've reviewed it for sensitive entries ([Recent Files], [Recent Find], [Recent Replace], Favorites=, DefaultDirectory=) and redacted what I don't want to share publicly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions