summaryrefslogtreecommitdiff
path: root/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_filename.html
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <Anteru@users.noreply.github.com>2022-04-24 14:56:11 +0200
committerGitHub <noreply@github.com>2022-04-24 14:56:11 +0200
commit992fa6c33cd61d32953f0cc00150875dce5c7bc4 (patch)
tree73c45c32d61e0fde02af0de20b2afb1d53fd5e59 /tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_filename.html
parent29392ea678456a46d741e3f4f6e32b9e58b1c2cd (diff)
downloadpygments-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_filename.html')
-rw-r--r--tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_filename.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_filename.html b/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_filename.html
index a0c1059a..0205691b 100644
--- a/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_filename.html
+++ b/tests/html_linenos_expected_output/table_cls_step_1_start_8_special_3_noanchor_filename.html
@@ -1,7 +1,6 @@
-<table class="highlighttable"><tr><th class="filename" colspan="2"><div class="highlight"><span class="filename">testfilename</span></div></th></tr><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 8</span>
+<div class="highlight"><table class="highlighttable"><tr><th class="filename" colspan="2"><span class="filename">testfilename</span></th></tr><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>