chiark / gitweb /
documentation/doxygen: all strikethroughs are supported only in 1.8.17.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 9 Jan 2022 21:20:06 +0000 (22:20 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 9 Jan 2022 21:50:15 +0000 (22:50 +0100)
documentation/test_doxygen/contents_typography/doxygen1817.html [new file with mode: 0644]
documentation/test_doxygen/contents_typography/index.html
documentation/test_doxygen/contents_typography/input.dox
documentation/test_doxygen/test_contents.py

diff --git a/documentation/test_doxygen/contents_typography/doxygen1817.html b/documentation/test_doxygen/contents_typography/doxygen1817.html
new file mode 100644 (file)
index 0000000..44de002
--- /dev/null
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8" />
+  <title>Features fully supported since 1.8.17 | My Project</title>
+  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
+  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
+  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+</head>
+<body>
+<header><nav id="navigation">
+  <div class="m-container">
+    <div class="m-row">
+      <a href="index.html" id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">My Project</a>
+    </div>
+  </div>
+</nav></header>
+<main><article>
+  <div class="m-container m-container-inflatable">
+    <div class="m-row">
+      <div class="m-col-l-10 m-push-l-1">
+        <h1>
+          Features fully supported since 1.8.17
+        </h1>
+<p><s>Strikethrough</s> in <s>various</s> <s>ways</s>. 1.8.16 knows only del and tildes, 1.8.13 none of these.</p>
+      </div>
+    </div>
+  </div>
+</article></main>
+</body>
+</html>
index 9b6c17417b270e54e6d46180c70d020515989e8b..c06a041363fe911e4797ab0279e9f358078f7dca 100644 (file)
@@ -25,7 +25,7 @@
 <blockquote><p>A blockquote.</p></blockquote><pre>Preformatted text.
 </pre><p>Paragraph<br />with<br />explicit<br />line<br />breaks.</p><section id="section"><h2><a href="#section">Page section</a></h2><pre>Differently
   preformatted
-text.</pre><ul><li>Unordered</li><li>list</li><li>of<ul><li>nested</li><li>items</li></ul></li><li>and back</li></ul><ol><li>Ordered</li><li>list</li><li>of<ol><li>nested</li><li>items</li></ol></li><li>and back</li></ol><p><a name="an-anchor"></a> This is a <code>typewriter text</code>, <em>emphasis</em>, <strong>bold</strong> and <s>strikethrough</s> in <s>various</s> <s>ways</s>. <em>Emphasis with <code>typewriter</code> and <strong>bold</strong> nested.</em> <a href="http://google.com">http:/<wbr />/<wbr />google.com</a> and <a href="http://google.com">URL</a>. <small>Small <em>text</em>.</small> En-dash &ndash; and em-dash &mdash;. Reference to a <a href="index.html#section" class="m-doc">Page section</a>. Named reference with special characters in title: <a href="index.html#section" class="m-doc">&raquo; Warnings &laquo;</a>. Reference with escaped characters in&nbsp;title: <a href="index.html#an-anchor" class="m-doc">&lt;anchor&gt;</a>.</p><p>2<sup>nd</sup> is L<sub>&infin;</sub> &forall; &nabla; &pi; &real; &image; This costs no $, &euro;, &pound;, &yen; or &curren;.</p><p>Empty elements:</p><pre></pre><hr/><p>Above is a horizontal line.</p></section>
+text.</pre><ul><li>Unordered</li><li>list</li><li>of<ul><li>nested</li><li>items</li></ul></li><li>and back</li></ul><ol><li>Ordered</li><li>list</li><li>of<ol><li>nested</li><li>items</li></ol></li><li>and back</li></ol><p><a name="an-anchor"></a> This is a <code>typewriter text</code>, <em>emphasis</em>, <strong>bold</strong>. <em>Emphasis with <code>typewriter</code> and <strong>bold</strong> nested.</em> <a href="http://google.com">http:/<wbr />/<wbr />google.com</a> and <a href="http://google.com">URL</a>. <small>Small <em>text</em>.</small> En-dash &ndash; and em-dash &mdash;. Reference to a <a href="index.html#section" class="m-doc">Page section</a>. Named reference with special characters in title: <a href="index.html#section" class="m-doc">&raquo; Warnings &laquo;</a>. Reference with escaped characters in&nbsp;title: <a href="index.html#an-anchor" class="m-doc">&lt;anchor&gt;</a>.</p><p>2<sup>nd</sup> is L<sub>&infin;</sub> &forall; &nabla; &pi; &real; &image; This costs no $, &euro;, &pound;, &yen; or &curren;.</p><p>Empty elements:</p><pre></pre><hr/><p>Above is a horizontal line.</p></section>
       </div>
     </div>
   </div>
index da9948933971e59e213454170907c02dbe39c882..61d53473938189bf9420e0868ba37278bd6cf729 100644 (file)
@@ -28,13 +28,12 @@ text.</pre>
 
 @anchor an-anchor
 
-This is a `typewriter text`, *emphasis*, **bold** and ~~strikethrough~~ in
-<s>various</s> <del>ways</del>. <em>Emphasis with <tt>typewriter</tt> and
-<strong>bold</strong> nested.</em> http://google.com and
-[URL](http://google.com). <small>Small *text*.</small> En-dash -- and em-dash
----. Reference to a @ref section. Named reference with special characters in
-title: @ref section "&raquo; Warnings &laquo;". Reference with escaped
-characters in&nbsp;title: @ref an-anchor "<anchor>".
+This is a `typewriter text`, *emphasis*, **bold**. <em>Emphasis with
+<tt>typewriter</tt> and <strong>bold</strong> nested.</em> http://google.com
+and [URL](http://google.com). <small>Small *text*.</small> En-dash -- and
+em-dash ---. Reference to a @ref section. Named reference with special
+characters in title: @ref section "&raquo; Warnings &laquo;". Reference with
+escaped characters in&nbsp;title: @ref an-anchor "<anchor>".
 
 2<sup>nd</sup> is L<sub>&infin;</sub> &forall; &nabla; &pi; &real; &image;
 This costs no $, &euro;, &pound;, &yen; or &curren;.
@@ -46,3 +45,10 @@ Empty elements: <em></em> <tt></tt> <strong></strong> <pre></pre> <small></small
 Above is a horizontal line.
 
 */
+
+/**
+@page doxygen1817 Features fully supported since 1.8.17
+
+~~Strikethrough~~ in <s>various</s> <del>ways</del>. 1.8.16 knows only del and
+tildes, 1.8.13 none of these.
+*/
index 5a1a26cb0d2bfff707a515b93be2d1811d9a1e8e..b32a65c629541591daa4aae16f6ae4299fd3a37c 100644 (file)
@@ -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')