[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56320] [octave forge] (generate_html) literal
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #56320] [octave forge] (generate_html) literal '%' in 1st line produces failure |
Date: |
Mon, 13 May 2019 21:41:14 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 |
Update of bug #56320 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #1:
> This makes the package fails with matlab style docstrings.
Just a small correction, this bug has nothing to do with whether '#' or '%'
comment markers are used for the doc string. This has to do with a literal '%'
in the doc string text itself.
So this does not trigger this bug
function myfunc ()
%MYFUNC This is a simple function.
%
% This function does something.
...
But this does trigger this bug
function myfunc ()
%MYFUNC This is a 100% Simple function.
%
% This function does something.
...
specifically because '% S' is not a valid printf conversion specifier. If it
was a lower-case 's' it would be interpreted as '% s', which is valid, but of
course silently buggy in a different way.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56320>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/