chiark / gitweb /
m.code: adapt to pygments 2.10 to 2.18.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 16 Sep 2024 11:59:57 +0000 (13:59 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 16 Sep 2024 12:13:33 +0000 (14:13 +0200)
commitf706d7a016134317f74c69031ec8ee14bcfbedf4
treeb9565d5400ed0c6540658fe8ad2762556ada32bf
parent37f9e9fda9b0225202e405f583448c6ac640f23c
m.code: adapt to pygments 2.10 to 2.18.

The new versions properly qualify whitespace as such instead of as text,
and do so gradually, which is responsible for most changes in the
output. Besides that, until 2.14 there were certain cases of empty
<span> in the output, which 2.14 fixes, so I add a postprocessing step
to clean those up to not need to further branch the tests.

The CI now tests various pygments versions, with only the last job
taking the latest version.
29 files changed:
doc/build-status.html.in
documentation/doxygen.py
documentation/test_doxygen/contents_blockquote/index-pygments29.html [new file with mode: 0644]
documentation/test_doxygen/contents_blockquote/index.html
documentation/test_doxygen/contents_code/index-pygments29.html [new file with mode: 0644]
documentation/test_doxygen/contents_code/index.html
documentation/test_doxygen/contents_code/warnings-pygments29.html [new file with mode: 0644]
documentation/test_doxygen/contents_code/warnings.html
documentation/test_doxygen/contents_code_filters/index-pygments210.html [new file with mode: 0644]
documentation/test_doxygen/contents_code_filters/index.html
documentation/test_doxygen/contents_code_language/index-pygments213.html [new file with mode: 0644]
documentation/test_doxygen/contents_code_language/index-pygments29.html [new file with mode: 0644]
documentation/test_doxygen/contents_code_language/index.html
documentation/test_doxygen/contents_custom/index-pygments29.html [new file with mode: 0644]
documentation/test_doxygen/contents_custom/index.html
documentation/test_doxygen/contents_tagfile/index-pygments29.html [new file with mode: 0644]
documentation/test_doxygen/contents_tagfile/index.html
documentation/test_doxygen/example/path-prefix_2CMakeLists_8txt-example-pygments210.html [new file with mode: 0644]
documentation/test_doxygen/example/path-prefix_2CMakeLists_8txt-example.html
documentation/test_doxygen/example/path-prefix_2main_8cpp-example-pygments29.html [new file with mode: 0644]
documentation/test_doxygen/example/path-prefix_2main_8cpp-example.html
documentation/test_doxygen/test_contents.py
documentation/test_doxygen/test_example.py
package/ci/circleci.yml
plugins/m/code.py
plugins/m/test/code/page-210.html [new file with mode: 0644]
plugins/m/test/code/page-29.html [new file with mode: 0644]
plugins/m/test/code/page.html
plugins/m/test/test_code.py