diff options
author | Matthäus G. Chajdas <Anteru@users.noreply.github.com> | 2022-04-24 14:56:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 14:56:11 +0200 |
commit | 992fa6c33cd61d32953f0cc00150875dce5c7bc4 (patch) | |
tree | 73c45c32d61e0fde02af0de20b2afb1d53fd5e59 /tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_nofilename.html | |
parent | 29392ea678456a46d741e3f4f6e32b9e58b1c2cd (diff) | |
download | pygments-git-992fa6c33cd61d32953f0cc00150875dce5c7bc4.tar.gz |
Fix #632. (#2101)
* Fix #632.
The doc string indicates that the linenos table is wrapped in <div class="highlight">,
but the actual implementation puts the <div> inside the table cell containing the code.
This seems to cause issues as explained in #632, and given it doesn't match the
documentation, this PR restores the original behavior.
* Fix sample code in comment.
* Update CHANGES.
* Refactor the wrapping logic.
Instead of calling _wrap_div() at the end of wrap(), _wrap_div()
is now called after wrap/_wrap_tablinelinenos. This yields the
desired behavior but removes the custom <div> generation code.
Diffstat (limited to 'tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_nofilename.html')
-rw-r--r-- | tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_nofilename.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_nofilename.html b/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_nofilename.html index cd9017f2..b94db013 100644 --- a/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_nofilename.html +++ b/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_nofilename.html @@ -1,7 +1,6 @@ -<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 8</span> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 8</span> <span class="special"> 9</span> -<span class="normal">10</span></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="c1"># a</span> +<span class="normal">10</span></pre></div></td><td class="code"><div><pre><span></span><span class="c1"># a</span> <span class="c1"># b</span> <span class="c1"># c</span> -</pre></div> -</td></tr></table>
\ No newline at end of file +</pre></div></td></tr></table></div> |