Skip to content

[BUG] <title>EOL Conversion to Windows format does not work #17920

@andreabortolinideda

Description

@andreabortolinideda

Is there an existing issue for this?

  • I have searched the existing issues

Is the issue reproducible in Notepad++ without plugin?

  • I have tried Notepad++ without plugin

Is the issue reproducible in portable version of Notepad++?

  • I have tried portable version of Notepad++

Does the issue affect SciTE?

  • I have tried SciTE

Description of the Issue

EOL Conversion to Windows format does not work. Some final EOLs remain LF instead of CRLF.

Steps To Reproduce

  1. write a file with 101 rows, empty rows with just the CRLF for example
  2. Edit -> EOL Conversion -> Linux -> every line ends correctly with LF
  3. Edit -> EOL Conversion -> Windows -> first 50 EOLs are correctly converted to CRLF. The others (from 51 to 100) are still LF

Current Behavior

first 50 EOLs are correctly converted to CRLF. The others (from 51 to 100) are still LF

Expected Behavior

all 100 EOLs become CRLF

Debug Information

Notepad++ v8.9.3   (64-bit)
Build time: Mar 20 2026 - 00:44:25
Scintilla/Lexilla included: 5.6.0/5.4.7
Boost Regex included: 1_90
pugixml included: 1.15
nlohmann JSON included: 3.12.0
Path: C:\Program Files\Notepad++\notepad++.exe
Command Line: "C:\progetti\firstaid\patch.diff"
Admin mode: OFF
Local Conf mode: OFF
Cloud Config: OFF
WinGUp: present
disableNppAutoUpdate.xml: absent
Periodic Backup: ON
Placeholders: OFF
Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode: monoInst
asNotepad: OFF
File Status Auto-Detection: cdEnabledNew (for current file/tab only)
Dark Mode: OFF
Display Info:
    primary monitor: 1920x1200, scaling 100%
    visible monitors count: 2
    installed Display Class adapters: 
        0000: Description - Intel(R) Graphics
        0000: DriverVersion - 32.0.101.8247
OS Name: Windows 11 Enterprise (64-bit)
OS Version: 25H2
OS Build: 26200.8037
Current ANSI codepage: 1252
Plugins: 
    JSMinNPP (25.11.16)
    JsonTools (8.4)
    mimeTools (3.1)
    NppConverter (4.7)
    NppExport (0.4)

Anything else?

my collegue with 8.9.3 has the same issue
my collegue with 8.9.1 does not have this issue

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions