[Gambas-user] Extra gb.newline ?

Jussi Lahtinen jussi.lahtinen at ...626...
Fri Jun 10 21:02:57 CEST 2011


One way to remove newline is use hex editor (GHex etc).

Jussi


On Fri, Jun 10, 2011 at 20:53, Caveat <Gambas at ...1950...> wrote:

> vi will also add a newline automatically.  In fact, it can be a little
> tricky to make a file without the newline at the end (but of course it
> can be done, as seen below)... also on opening, vi will complain with
> the message "incomplete last line"...
>
> If you are creating a text file as your output, ultimately you *should*
> try to make sure your file ends with a newline, to be compliant with the
> way 'nix expects text files to be.
>
> Regards,
> Caveat
>
> On Fri, 2011-06-10 at 20:16 +0300, Jussi Lahtinen wrote:
> > Yes, you are right, gedit will add newline automatically.
> > That was unexpected. Thanks!
> >
> > Jussi
> >
> >
> > On Thu, Jun 9, 2011 at 23:32, tobias <tobiasboe1 at ...20...> wrote:
> >
> > > hi,
> > > without having seen the code - i think it's all ok with your code - i'd
> > > say that the problem is in creation of the text file. editors like
> gedit
> > > are likely to add a newline at the end of file so it is shuffled into
> > > the second file, too. try to create your file like this in terminal:
> > > echo -n "1,2,3,4,5,6,7,8,9,10" > test.txt
> > > the -n switch disables the trailing newline...
> > >
> > > regards,
> > > tobi
> > >
> > >
> > >
> ------------------------------------------------------------------------------
> > > EditLive Enterprise is the world's most technically advanced content
> > > authoring tool. Experience the power of Track Changes, Inline Image
> > > Editing and ensure content is compliant with Accessibility Checking.
> > > http://p.sf.net/sfu/ephox-dev2dev
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> ------------------------------------------------------------------------------
> > EditLive Enterprise is the world's most technically advanced content
> > authoring tool. Experience the power of Track Changes, Inline Image
> > Editing and ensure content is compliant with Accessibility Checking.
> > http://p.sf.net/sfu/ephox-dev2dev
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list