BUG DESCRIPTION:
----------------
Converting an object to HTML using prettyprint(), crashes with an error in Linux. The example provided in the help chapter for prettyprint function for converting an object to HTML also prompted the same error.
ERROR LOG:
----------
obj = [1,2,3; 4,5,6; 7,8,9]
obj =
1. 2. 3.
4. 5. 6.
7. 8. 9.
--> ConvStr = prettyprint(obj, "html", "|");
at line 106 of function prettyprint ( /home/manish/Downloads/scilab-6.1.0/share/scilab/modules/string/macros/prettyprint.sci line 118 )
copyfile: Wrong value for input argument #1: A valid filename or directory expected.
HOW TO REPRODUCE THE BUG:
-------------------------
obj = [1,2,3; 4,5,6; 7,8,9];
ConvStr = prettyprint(obj, "html", "|");
Also, you can try the inbuild examples in the help chapter of the prettyprint function, it will also show the same error.
OTHER INFORMATION:
------------------
The same command works well in windows :
--> obj = [1,2,3; 4,5,6; 7,8,9];
--> ConvStr = prettyprint(obj, "html", "|")
ConvStr =
"
<table valign="middle" cellspacing="0" cellpadding="3" style="border-left:solid 1px; border-right:solid 1px; display:inline-table;">
<tr align="center">
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr align="center">
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr align="center">
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
</table>
"