Open ufechner7 opened 2 years ago
The first warning is a bug, and I am fixing it, however, for the second warning I need to learn how to fix it. Probably PrettyTables version 2 will fix it.
PS We will move the showing functionality to PrettyTables version 2 soon. The reason why we haven't move to the new version of the package yet is that the change will be breaking, thus a little more study would be a good idea.
In case it helps, the program tidy fixes the output into this form:
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.2.0">
<title></title>
</head>
<body>
<p>3 rows × 3 columns</p>
<table class="data-set">
<thead>
<tr>
<th></th>
<th>var1</th>
<th>var2</th>
<th>var3</th>
</tr>
<tr>
<th></th>
<th>identity</th>
<th>identity</th>
<th>identity</th>
</tr>
<tr>
<th></th>
<th title="Union{Missing, Int64}">Int64?</th>
<th title="Union{Missing, Float64}">Float64?</th>
<th title="Union{Missing, String}">String?</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<td>1</td>
<td>1.2</td>
<td>C1</td>
</tr>
<tr>
<th>2</th>
<td>2</td>
<td>0.5</td>
<td>C2</td>
</tr>
<tr>
<th>3</th>
<td>3</td>
<td>3.3</td>
<td>C3</td>
</tr>
</tbody>
</table>
</body>
</html>
This is helpful. If I understand it correctly, it suggests putting the
..
out of table.
Example:
Content of the file summary.html after running this script:
Checking if the file is correct using the program tidy:
This is not only a theoretical problems, this html fails to render with some renderers.