Re: Content of new text file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, Jul 14, 2011 at 4:19 AM, Paul Gideon Dann <pdgiddie@xxxxxxxxx>wrote:

> On Wednesday 13 Jul 2011 15:00:37 Squall Lionheart wrote:
> > When using Dolphin in KDE4 to *Create New > Text File...* the new file is
> > not empty, it contains a space and a newline character.
>
> I wonder if that's to do with MIME types?  With a space and a newline, the
> file
> is detected by "file" as ASCII text rather than "empty".  A single newline
> is
> detected as "very short file (no magic)", so probably the space-newline
> combo
> is the shortest file that can be automatically detected as text.
>
> It might be handy to have the option to "Create New => Empty File" though,
> although I don't think I've ever needed to do this outside a terminal
> myself.
>
> Paul
>


I tried what Pete said and that fixed it.  The template file is located at
/usr/share/templates/.source/TextFile.txt and clearing the contents makes
new files appear empty as expected.

Thank you
Squall


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux