[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59527] num2str: percent sign removes newline
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #59527] num2str: percent sign removes newline for column vector |
Date: |
Tue, 24 Nov 2020 10:40:29 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #2, bug #59527 (project octave):
The problem seems to be the check for more than one format specifier here:
http://hg.savannah.gnu.org/hgweb/octave/file/d09dde091073/scripts/general/num2str.m#l133
That check was added in the following changeset:
http://hg.savannah.gnu.org/hgweb/octave/annotate/f357e076776f/scripts/general/num2str.m#l122
Maybe skip "%%" in the format using something like the attached change? I
don't know whether this quick fix could be fooled in some other ways though,
so a better check for format specifiers may be needed. Either way, we could
uses tests for these cases, of course..
(file #50334)
_______________________________________________________
Additional Item Attachment:
File name: num2str-diffs.txt Size:0 KB
<https://file.savannah.gnu.org/file/num2str-diffs.txt?file_id=50334>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59527>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/