Bug 466216

Summary: Double line breaks when opening a remote CRLF file
Product: [Frameworks and Libraries] kio-extras Reporter: Andrius <andriusmao>
Component: FISHAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 22.12.2   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andrius 2023-02-21 21:34:44 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Open a remote folder (SFTP) in dolphin
2.  Drag a file (in my case a python file) that has CR/LF (Windows Line breaks) into Kate

OBSERVED RESULT
Files display double line breaks (i.e.: empty lines after each line of the file)

EXPECTED RESULT
Text should display normally without empty lines through it.

SOFTWARE/OS VERSIONS
Windows 11 (22H2)
KDE Frameworks Version: 5.103.0

ADDITIONAL INFORMATION
Kate and Dolphin built from sources with Craft.
Seems to happen only with remote files, not with local files.