bugGNU Octave - Bugs: bug #56320, [octave forge] (generate_html)...


bug #56320: [octave forge] (generate_html) literal '%' in 1st line produces failure

Submitted by:  Juan Pablo Carbajal <juanpi>
Submitted on:  Tue 14 May 2019 12:52:13 AM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  Confirmed Assigned to:  None
Originator Name:  juanpi Open/Closed:  Open
Release:  other Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 14 May 2019 01:41:14 AM UTC, 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

But this does trigger this bug

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.

Mike Miller <mtmiller>
Project Administrator
Tue 14 May 2019 12:52:13 AM UTC, original submission:

This report is based on all the information provided by Mike Miller, thanks!

When the first help sentence of a function contains a literal '%' character, generate_html fails when parsing the docstring.

A simple test case would be

This makes the package fails with matlab style docstrings.

Juan Pablo Carbajal <juanpi>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by juanpi (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-14 mtmiller StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.4