[dolphin] [Bug 479014] Create New Text File adds invisible characters

deadmeu bugzilla_noreply at kde.org
Sat Jan 20 03:46:37 GMT 2024


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

--- Comment #3 from deadmeu <deadmeu at dmu.gg> ---
(In reply to Jonathan Marten from comment #2)
> This appears to be intentional, so that the created file is detected as a
> text file MIME type and not as an empty file.  There is a separate option to
> create a truly empty file (0 bytes) if this is what is required.  See the
> duplicate bug.
> 
> *** This bug has been marked as a duplicate of bug 297003 ***

As a user, I would expect that "Create new text file" would just create an
empty file with the ".txt" extension.

Having a white space character included on the first line is a bit annoying. It
seems like KWrite automatically strips this character when you save the file,
but if you were to open the file in Vim it would not be stripped automatically.

At most, I think maybe a newline character would make sense so that you
automatically have the file ending in a newline character when you type
something in on the first line directly after file creation, but that's all.

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


More information about the kfm-devel mailing list