-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Labels
changelog-updateItems which need to get mentioned in the changelogItems which need to get mentioned in the changelog
Milestone
Description
When using HtmlFormatter with both the linenos=table and filename=testfile options, you get some output like that shown below. The problem is that the filename being output within the <td> for the code throws off the line number alignment.
<table class="highlighttable">
<tr>
<td class="linenos">
<div class="linenodiv">
<pre>...</pre>
</div>
</td>
<td class="code">
<div class="highlight">
<span class="filename">testfile</span>
<pre>...</pre>
</div>
</td>
</tr>
</table>I suggest that this is unlikely to be useful to anyone, since it will invariably throw off the line numbering alignment. Hence, in the special case of someone using linenos=table and specifying a filename I would suggest that another table row is output as a caption:
<table class="highlighttable">
<tr>
<td colspan="2" class="filename">testfile</td>
</tr><tr>
<td class="linenos">
<div class="linenodiv">
<pre>...</pre>
</div>
</td>
<td class="code">
<div class="highlight">
<pre>...</pre>
</div>
</td>
</tr>
</table>I can look at entering a pull request to implement this, but I wanted to get some feedback on whether this would be acceptable first.
Metadata
Metadata
Assignees
Labels
changelog-updateItems which need to get mentioned in the changelogItems which need to get mentioned in the changelog