Summary: | Create New Text File adds invisible characters | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | deadmeu <deadmeu> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | akselmo, jjm, kfm-devel |
Priority: | NOR | ||
Version: | 23.08.4 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
deadmeu
2023-12-26 08:08:05 UTC
Can reproduce on Plasma 6 as well. 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 *** (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. |