From f3f86b1a6376a609fffa7dded0629252049510ed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 9 Jan 2022 22:20:06 +0100 Subject: [PATCH] documentation/doxygen: all strikethroughs are supported only in 1.8.17. --- .../contents_typography/doxygen1817.html | 31 +++++++++++++++++++ .../contents_typography/index.html | 2 +- .../contents_typography/input.dox | 20 +++++++----- documentation/test_doxygen/test_contents.py | 5 +++ 4 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 documentation/test_doxygen/contents_typography/doxygen1817.html diff --git a/documentation/test_doxygen/contents_typography/doxygen1817.html b/documentation/test_doxygen/contents_typography/doxygen1817.html new file mode 100644 index 00000000..44de0020 --- /dev/null +++ b/documentation/test_doxygen/contents_typography/doxygen1817.html @@ -0,0 +1,31 @@ + + + + + Features fully supported since 1.8.17 | My Project + + + + + +
+
+
+
+
+

+ Features fully supported since 1.8.17 +

+

Strikethrough in various ways. 1.8.16 knows only del and tildes, 1.8.13 none of these.

+
+
+
+
+ + diff --git a/documentation/test_doxygen/contents_typography/index.html b/documentation/test_doxygen/contents_typography/index.html index 9b6c1741..c06a0413 100644 --- a/documentation/test_doxygen/contents_typography/index.html +++ b/documentation/test_doxygen/contents_typography/index.html @@ -25,7 +25,7 @@

A blockquote.

Preformatted text.
 

Paragraph
with
explicit
line
breaks.

Page section

Differently
   preformatted
-text.
  1. Ordered
  2. list
  3. of
    1. nested
    2. items
  4. and back

This is a typewriter text, emphasis, bold and strikethrough in various ways. Emphasis with typewriter and bold nested. http://google.com and URL. Small text. En-dash – and em-dash —. Reference to a Page section. Named reference with special characters in title: » Warnings «. Reference with escaped characters in title: <anchor>.

2nd is L ∀ ∇ π ℜ ℑ This costs no $, €, £, ¥ or ¤.

Empty elements:


Above is a horizontal line.

+text.
  1. Ordered
  2. list
  3. of
    1. nested
    2. items
  4. and back

This is a typewriter text, emphasis, bold. Emphasis with typewriter and bold nested. http://google.com and URL. Small text. En-dash – and em-dash —. Reference to a Page section. Named reference with special characters in title: » Warnings «. Reference with escaped characters in title: <anchor>.

2nd is L ∀ ∇ π ℜ ℑ This costs no $, €, £, ¥ or ¤.

Empty elements:


Above is a horizontal line.

diff --git a/documentation/test_doxygen/contents_typography/input.dox b/documentation/test_doxygen/contents_typography/input.dox index da994893..61d53473 100644 --- a/documentation/test_doxygen/contents_typography/input.dox +++ b/documentation/test_doxygen/contents_typography/input.dox @@ -28,13 +28,12 @@ text. @anchor an-anchor -This is a `typewriter text`, *emphasis*, **bold** and ~~strikethrough~~ in -various ways. Emphasis with typewriter and -bold nested. http://google.com and -[URL](http://google.com). Small *text*. En-dash -- and em-dash ----. Reference to a @ref section. Named reference with special characters in -title: @ref section "» Warnings «". Reference with escaped -characters in title: @ref an-anchor "". +This is a `typewriter text`, *emphasis*, **bold**. Emphasis with +typewriter and bold nested. http://google.com +and [URL](http://google.com). Small *text*. En-dash -- and +em-dash ---. Reference to a @ref section. Named reference with special +characters in title: @ref section "» Warnings «". Reference with +escaped characters in title: @ref an-anchor "". 2nd is L ∀ ∇ π ℜ ℑ This costs no $, €, £, ¥ or ¤. @@ -46,3 +45,10 @@ Empty elements:
 various ways. 1.8.16 knows only del and
+tildes, 1.8.13 none of these.
+*/
diff --git a/documentation/test_doxygen/test_contents.py b/documentation/test_doxygen/test_contents.py
index 5a1a26cb..b32a65c6 100644
--- a/documentation/test_doxygen/test_contents.py
+++ b/documentation/test_doxygen/test_contents.py
@@ -44,6 +44,11 @@ class Typography(IntegrationTestCase):
         self.run_doxygen(wildcard='indexpage.xml')
         self.assertEqual(*self.actual_expected_contents('index.html'))
 
+    @unittest.skipUnless(LooseVersion(doxygen_version()) > LooseVersion("1.8.17"), "new features in 1.8.17")
+    def test_1817(self):
+        self.run_doxygen(wildcard='doxygen1817.xml')
+        self.assertEqual(*self.actual_expected_contents('doxygen1817.html'))
+
 class Blocks(IntegrationTestCase):
     def test(self):
         self.run_doxygen(wildcard='*.xml')
-- 
2.30.2