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

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

[Octave-bug-tracker] [bug #39871] "see also" formatting for debug.m and


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #39871] "see also" formatting for debug.m and in general
Date: Wed, 28 Aug 2013 17:52:05 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15

Follow-up Comment #5, bug #39871 (project octave):

I put strtrim() around the atoms of the default __makeinfo__.m routine:


  if (nargin < 3)
    if (strcmpi (output_type, "plain text"))
      fsee_also = @(T) strcat ...
          ("nSee also:", sprintf (" %s,", strtrim(T{:}))(1:end-1), "n");
    else
      fsee_also = @(T) strcat ...
          ("nSee also:", sprintf (" @ref{%s},", strtrim(T{:}))(1:end-1),
"n");
    endif
  endif


and nothing changed.  I'm guessing that this routine is not being used.  (I
don't follow the "end-1" part of it either, seeing as there is no line of code
that prints the last element "end".)  There are too many "seealso"s in the
code when I grep to sort through this.

Is __makeinfo__ where the problem lies?  I'm wondering if __makeinfo__ is
simply a secondary stage that creates a layout suitable for TeX or HTML and it
is some prior stage where the spaces could be removed.  I can't think of a
reason to leave whitespace intact, although there might be one.  No qualms
with just changing debug.m either.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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