chiark / gitweb /
documentation/doxygen: Doxygen 1.11 can already produce <sect6>.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 14 Sep 2024 02:47:53 +0000 (04:47 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 14 Sep 2024 03:06:43 +0000 (05:06 +0200)
What an amazing piece of thing.

documentation/doxygen.py
documentation/test_doxygen/contents_sections_headings/Warnings_8h-110.html [moved from documentation/test_doxygen/contents_sections_headings/Warnings_8h-111.html with 100% similarity]
documentation/test_doxygen/contents_sections_headings/warnings-110.html [moved from documentation/test_doxygen/contents_sections_headings/warnings-111.html with 100% similarity]
documentation/test_doxygen/test_contents.py

index a4612ff70f882cc4708c1585887a6e1f963efdb3..8813b5d6297836b72ff77720b1016abce9b62c6b 100755 (executable)
@@ -605,7 +605,7 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET.
                 out.parsed += '<p>'
                 out.write_paragraph_close_tag = True
 
-        # Block elements. Until Doxygen 1.11 it was at most <sect4>, 1.12 seems
+        # Block elements. Until Doxygen 1.10 it was at most <sect4>, 1.11 seems
         # to have up to 6: https://github.com/doxygen/doxygen/issues/11016
         if i.tag in ['sect1', 'sect2', 'sect3', 'sect4', 'sect5', 'sect6']:
             assert element.tag != 'para' # should be top-level block element
@@ -687,8 +687,8 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET.
 
         # Apparently, in 1.8.18, <heading> is used for Markdown headers only if
         # we run out of sect1-4 tags. Which also happens when there's a heading
-        # with a ####### underline. In 1.12 it doesn't produce a <heading>, and
-        # instead just puts the #'s to the output verbatim. Which means we
+        # with a ####### underline. In 1.11+ it doesn't produce a <heading>,
+        # and instead just puts the #'s to the output verbatim. Which means we
         # can't warn for that. See test_contents.SectionsHeadings for repro
         # cases.
         elif i.tag == 'heading':
index 3c255154e614613417eff40f994bfba74008c55d..a55a58a6c347b91ca68452925663b938d2421e64 100644 (file)
@@ -419,7 +419,7 @@ class SectionsHeadings(IntegrationTestCase):
 
         # https://github.com/doxygen/doxygen/issues/11016, merged into 1.12, is
         # responsible I think. It got better, yes.
-        if parse_version(doxygen_version()) >= (1, 12):
+        if parse_version(doxygen_version()) >= (1, 11):
             page = 'warnings.html'
             file = 'Warnings_8h.html'
             output = [
@@ -427,8 +427,8 @@ class SectionsHeadings(IntegrationTestCase):
                 "WARNING:root:warnings.xml: more than five levels of sections are not supported, stopping at <h6>",
             ]
         else:
-            page = 'warnings-111.html'
-            file = 'Warnings_8h-111.html'
+            page = 'warnings-110.html'
+            file = 'Warnings_8h-110.html'
             output = [
                 "WARNING:root:Warnings_8h.xml: more than three levels of sections in member descriptions are not supported, stopping at <h6>",
                 "WARNING:root:Warnings_8h.xml: a Markdown heading underline was apparently misparsed by Doxygen, prefix the headings with # instead",