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

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

[Octave-bug-tracker] [bug #44202] Some documentation items are accessibl


From: Rik
Subject: [Octave-bug-tracker] [bug #44202] Some documentation items are accessible using "doc" in cli but not in GUI
Date: Fri, 1 Sep 2017 15:25:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #44202 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #2:

This code is buried but it seems to be in libgui/src/qtinfo/parser.cc.  The
routine is:  


QString
parser::find_ref (const QString& ref_name)
{
  QString text = "";

  QHash<QString, node_position>::iterator it;
  for (it = _ref_map.begin (); it != _ref_map.end (); ++it)
    {
      QString k = it.key ();
      node_position p = it.value ();

      if (k == "XREF" + ref_name)
        {
          // found ref, so return its name
          text = "XREF" + ref_name;
          break;
        }
    }

  if (text.isEmpty ())  // try the statement-nodes
    {
      QHash<QString, node_map_item>::iterator itn;
      for (itn = _node_map.begin (); itn != _node_map.end (); ++itn)
        {
          QString k = itn.key ();
          if (k == "The " + ref_name + " Statement")
            {
              // found ref, so return its name
              text = k;
              break;
            }
        }
    }

  return text;
}


If I look in octave.info I see that the the XREF objects have whitespace
removed.


octave.info:Ref: XREFaxescolor936269


I just tried this in the GUI and it works.


doc ('axescolor')


It seems like this is a simple fix.  The search string just needs to be
stripped of whitespace before continuing.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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