<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/pygments-git.git/tests/html_linenos_expected_output, branch regex</title>
<subtitle>github.com: pygments/pygments.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/'/>
<entry>
<title>Fix #632. (#2101)</title>
<updated>2022-04-24T12:56:11+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>Anteru@users.noreply.github.com</email>
</author>
<published>2022-04-24T12:56:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=992fa6c33cd61d32953f0cc00150875dce5c7bc4'/>
<id>992fa6c33cd61d32953f0cc00150875dce5c7bc4</id>
<content type='text'>
* Fix #632.

The doc string indicates that the linenos table is wrapped in &lt;div class="highlight"&gt;,
but the actual implementation puts the &lt;div&gt; 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 &lt;div&gt; generation code.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix #632.

The doc string indicates that the linenos table is wrapped in &lt;div class="highlight"&gt;,
but the actual implementation puts the &lt;div&gt; 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 &lt;div&gt; generation code.</pre>
</div>
</content>
</entry>
<entry>
<title>Update HTML tests.</title>
<updated>2021-12-06T17:51:39+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2021-12-06T17:51:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=d1f186741009030522e05ce6577a8a194245a22a'/>
<id>d1f186741009030522e05ce6577a8a194245a22a</id>
<content type='text'>
This includes a new structural diff which is more robust, as it handles
changes like different attribute order.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This includes a new structural diff which is more robust, as it handles
changes like different attribute order.
</pre>
</div>
</content>
</entry>
<entry>
<title>Regenerate HTML test files.</title>
<updated>2021-11-13T14:50:51+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2021-11-13T14:50:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=0779313e2c74966263628c52187b7a8895c663d2'/>
<id>0779313e2c74966263628c52187b7a8895c663d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Filename to &lt;th&gt; if linenos=table (fixes #1757) (#1759)</title>
<updated>2021-03-28T06:29:01+00:00</updated>
<author>
<name>Andy Pearce</name>
<email>andy@andy-pearce.com</email>
</author>
<published>2021-03-28T06:29:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=2095bd9f9b25821bd8e8770b165ceb9288763d29'/>
<id>2095bd9f9b25821bd8e8770b165ceb9288763d29</id>
<content type='text'>
* Filename to &lt;th&gt; if linenos=table (fixes #1757)

* Emit `&lt;th&gt;` for `filename` if `linenos=table`.

* Added test cases for filename inclusion.

* Updated CHANGES</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Filename to &lt;th&gt; if linenos=table (fixes #1757)

* Emit `&lt;th&gt;` for `filename` if `linenos=table`.

* Added test cases for filename inclusion.

* Updated CHANGES</pre>
</div>
</content>
</entry>
<entry>
<title>Fix/1698 lineos wrapping (#1701)</title>
<updated>2021-02-12T19:40:15+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>Anteru@users.noreply.github.com</email>
</author>
<published>2021-02-12T19:40:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=efd9aa5a955fd512fcf9d1980f206f795cea9075'/>
<id>efd9aa5a955fd512fcf9d1980f206f795cea9075</id>
<content type='text'>
* Fix #1698.

* Change default line number styling.

Instead of hardcoding black/light gray, use transparent/inherit which
makes it "neutral" out of the box. linenospecial is still hard-coded and
may look wrong, but that needs fixing in the style.

* Prettify the test files.

* Fix incorrect wrapping of TD linenos.

The padding would get applied twice to "special" lines, once via
&lt;pre&gt;, once via the &lt;span&gt;, which was not consistent with inline
line numbers where the .special style would override the default
style.

To fix this, we now emit "normal" and "special" lines for td.linenos
line numbers, and the normal style is applied to "normal". This brings
td.linenos closer to inline line numbers, and also makes the styling
between noclasses=True and noclasses=False consistent.

* Document the line number styling changes.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix #1698.

* Change default line number styling.

Instead of hardcoding black/light gray, use transparent/inherit which
makes it "neutral" out of the box. linenospecial is still hard-coded and
may look wrong, but that needs fixing in the style.

* Prettify the test files.

* Fix incorrect wrapping of TD linenos.

The padding would get applied twice to "special" lines, once via
&lt;pre&gt;, once via the &lt;span&gt;, which was not consistent with inline
line numbers where the .special style would override the default
style.

To fix this, we now emit "normal" and "special" lines for td.linenos
line numbers, and the normal style is applied to "normal". This brings
td.linenos closer to inline line numbers, and also makes the styling
between noclasses=True and noclasses=False consistent.

* Document the line number styling changes.</pre>
</div>
</content>
</entry>
<entry>
<title>Support anchored line numbers in inline mode (#1591)</title>
<updated>2021-02-06T15:46:26+00:00</updated>
<author>
<name>Kevin Deldycke</name>
<email>kevin@deldycke.com</email>
</author>
<published>2021-02-06T15:46:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=8e62673e0420f263e9e8ee141c8a516eaee3d881'/>
<id>8e62673e0420f263e9e8ee141c8a516eaee3d881</id>
<content type='text'>
* Add support for anchored line numbers in inline rendering mode

* Fix tests rendering anchored line number in inline mode</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add support for anchored line numbers in inline rendering mode

* Fix tests rendering anchored line number in inline mode</pre>
</div>
</content>
</entry>
<entry>
<title>Remove margin: 0 from &lt;pre&gt; styling.</title>
<updated>2020-10-28T18:33:47+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-10-28T18:33:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=4dede4010180c8a5a231628deedcf393565cf785'/>
<id>4dede4010180c8a5a231628deedcf393565cf785</id>
<content type='text'>
This seems to break some themes which were not expecting Pygments to
change margins, and it doesn't look like it makes a difference for
standalone Pygments.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This seems to break some themes which were not expecting Pygments to
change margins, and it doesn't look like it makes a difference for
standalone Pygments.
</pre>
</div>
</content>
</entry>
<entry>
<title>Speculative fix for #1579. (#1583)</title>
<updated>2020-10-24T09:46:11+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>Anteru@users.noreply.github.com</email>
</author>
<published>2020-10-24T09:46:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=20fb8fd85f37d79b37ac79f14774b9cc4ae77731'/>
<id>20fb8fd85f37d79b37ac79f14774b9cc4ae77731</id>
<content type='text'>
This removes the top/bottom padding changes, and only keeps left/right
padding, in the hope that this does not break all Sphinx themes.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This removes the top/bottom padding changes, and only keeps left/right
padding, in the hope that this does not break all Sphinx themes.</pre>
</div>
</content>
</entry>
<entry>
<title>Improve HTML formatter output.</title>
<updated>2020-07-31T10:20:04+00:00</updated>
<author>
<name>Matthäus G. Chajdas</name>
<email>dev@anteru.net</email>
</author>
<published>2020-07-31T10:16:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=b6fb70f88a4bf270a36515e958fdf124a70543ad'/>
<id>b6fb70f88a4bf270a36515e958fdf124a70543ad</id>
<content type='text'>
With the previous changes, we started to emit one &lt;pre&gt; per line for
line numbers. This breaks for instance the Sphinx-RTD-Theme, which
expects the line numbers to be formatted the same way as the normal
content. This commit makes the following changes:

* Emit a single &lt;pre&gt; inside the linenos div
* Wrap individual lines into &lt;span&gt; as needed
* Update all tests
* Don't yield empty &lt;span&gt; elements when no style is specified

This also makes the .html test files look correct when looked at with a
browser, as there is no extra whitespace in them which needs stripping.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With the previous changes, we started to emit one &lt;pre&gt; per line for
line numbers. This breaks for instance the Sphinx-RTD-Theme, which
expects the line numbers to be formatted the same way as the normal
content. This commit makes the following changes:

* Emit a single &lt;pre&gt; inside the linenos div
* Wrap individual lines into &lt;span&gt; as needed
* Update all tests
* Don't yield empty &lt;span&gt; elements when no style is specified

This also makes the .html test files look correct when looked at with a
browser, as there is no extra whitespace in them which needs stripping.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Solarized line number colors (#1477)</title>
<updated>2020-07-04T16:10:03+00:00</updated>
<author>
<name>Paweł Fertyk</name>
<email>pfertyk@users.noreply.github.com</email>
</author>
<published>2020-07-04T16:10:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/pygments-git.git/commit/?id=728fd19ebcb69ddb2c7af159939e1a19ae53a892'/>
<id>728fd19ebcb69ddb2c7af159939e1a19ae53a892</id>
<content type='text'>
* Add font and background colors to Style

* Move all styles to get_style_defs, add tests

* Remove hardcoded styles, add special lineno style

* Add styles for special line numbers in tables

* Update noclasses documentation

* Refactor linenos elements and styles, add tests

* Update AUTHORS

* Fix multiple CSS prefixes, add tests</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add font and background colors to Style

* Move all styles to get_style_defs, add tests

* Remove hardcoded styles, add special lineno style

* Add styles for special line numbers in tables

* Update noclasses documentation

* Refactor linenos elements and styles, add tests

* Update AUTHORS

* Fix multiple CSS prefixes, add tests</pre>
</div>
</content>
</entry>
</feed>
