[dolphin] [Bug 440369] New: Pasting text directly in dolphin creates file without end new line

Ashark bugzilla_noreply at kde.org
Wed Jul 28 20:36:28 BST 2021


https://bugs.kde.org/show_bug.cgi?id=440369

            Bug ID: 440369
           Summary: Pasting text directly in dolphin creates file without
                    end new line
           Product: dolphin
           Version: 21.07.80
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: dolphin-bugs-null at kde.org
          Reporter: ashark at linuxcomp.ru
                CC: kfm-devel at kde.org
  Target Milestone: ---

Each text file should have newline at end of file, according to this question:
https://stackoverflow.com/questions/5813311/whats-the-significance-of-the-no-newline-at-end-of-file-log

But automatically created files misses that new line.

STEPS TO REPRODUCE
1. Copy these two text lines to clipboard:
first line
second line
2. Open some folder in Dolphin
3. Press ctrl + v shortcut.
4. File name dialog will appear. Enter test.txt.
5. Run `wc -l test.txt`

The output of the command is:
1 test.txt

The output of the command should be:
2 test.txt

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Dolphin 21.07.80

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list