AutoDoc: Example code block for sprintf() gets truncated by renderer
The last piece of the sprintf()
example gets truncated by the AutoDoc formater:
From sprintf.c
:
*! > write("<td%{ %s='%s'%}>\n", (array)sample);
*! <td valign='middle' align='left'>
*! (11) Result: 34
*! > write("Of course all the simple printf options "+
*! >> "are supported:\n %s: %d %x %o %c\n",
*! >> "65 as decimal, hex, octal and a char",
*! >> 65, 65, 65, 65);
*! Of course all the simple printf options are supported:
*! 65 as decimal, hex, octal and a char: 65 41 101 A
*! (12) Result: 106
*! > write("%[0]d, %[0]x, %[0]X, %[0]o, %[0]c\n", 75);
*! 75, 4b, 4B, 113, K
*! (13) Result: 19
*! > write("%|*s\n",screen_width, "THE END");
*! THE END
*! (14) Result: 71
*! > write("%|*s\n", ([ "width":screen_width ]), "ALTERNATIVE END");
*! ALTERNATIVE END
*! (15) Result: 71
*! @endcode
*!
*! @seealso
Corresponding code in modref.xml
:
> write("<td%{ %s='%s'%}>\n", (array)sample);
<td valign='middle' align='left'>
(11) Result: 34
> write("Of course all the simple printf options "+
>> "are supported:\n %s: %d %x %o %c\n",
>> "65 as decimal, hex, octal and a char",
>> 65, 65, 65, 65);
Of course all the simple printf options are supported:
65 as decimal, hex, octal and a char: 65 41 101 A
(12) Result: 106
> write("%[0]d, %[0]x, %[0]X, %[0]o, %[0]c\n", 75);
75, 4b, 4B, 113, K
(13) Result: 19
> write("%|*s\n",screen_width, "THE END");
THE END
(14) Result: 71
> write("%|*s\n", ([ "width":screen_width ]), "ALTERNATIVE END");
ALTERNATIVE END
(15) Result: 71</p>
</text></code>
Fine so far...
In predef_3A_3A/sprintf.html
:
> write("<td%{ %s='</span><span class='delim'>%</span>s<span class='string'>'%}>\n", (array)sample);
<td valign='</span>middle<span class='string'>' align='</span>left
</code></pre>
</pre></dd>
<dt class='head--doc'>See also</dt>
So the example block has been truncated at the '>
.
Same in traditional_manual/chapter_27.html
:
> write("<td%{ %s='</span><span class='delim'>%</span>s<span class='string'>'%}>\n", (array)sample);
<td valign='</span>middle<span class='string'>' align='</span>left
</code></pre>
</pre></dd>
<dt class='head--doc'>See also</dt>
Edited by Henrik (Grubba) Grubbström