octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #52479] textscan ignores leading spaces when c


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #52479] textscan ignores leading spaces when creating cell from string/file
Date: Wed, 29 Nov 2017 00:08:34 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #13, bug #52479 (project octave):

I opened a new bug report for the observation in comment 12:

https://savannah.gnu.org/bugs/index.php?52550

because this seems different enough from the original report and is not
related to white-space.  Consider that similar behavior occurs when the
delimiter is a comma:


octave:1> a = ",,a,b,c\n";
octave:2> textscan(a, '%s', 'delimiter', ',')
ans =
{
  [1,1] =
  {
    [1,1] = 
    [2,1] = 
    [3,1] = a
    [4,1] = b
    [5,1] = c
  }

}

octave:3> textscan(a, '%s', 'delimiter', {','})
ans =
{
  [1,1] =
  {
    [1,1] = 
    [2,1] = a
    [3,1] = b
    [4,1] = c

  }

}


Let's keep this report concise and not conflate it with the differences
between string-specified and cell-specified delimiters.  I'll address various
things, including compatability at the new bug report.  We can close this one.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52479>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]