chiark / gitweb /
doxygen: implement  .
authorVladimír Vondruš <mosra@centrum.cz>
Fri, 15 Dec 2017 00:59:15 +0000 (01:59 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Fri, 15 Dec 2017 01:20:26 +0000 (02:20 +0100)
doxygen/dox2html5.py
doxygen/test/contents_typography/index.html
doxygen/test/contents_typography/input.dox

index 9887dc2e0855b7f7f9caa553b93a7f7d284296cb..e8f8bb32cef99448d7428103a77b77c811b42d5f 100755 (executable)
@@ -769,6 +769,8 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET.
         # WHAT THE HELL WHY IS THIS NOT AN XML ENTITY
         elif i.tag in ['mdash', 'ndash', 'laquo', 'raquo']:
             out.parsed += '&{};'.format(i.tag)
+        elif i.tag == 'nonbreakablespace':
+            out.parsed += '&nbsp;'
 
         # Something new :O
         else: # pragma: no cover
index c9fcfe7ac58016ce8b260a6a4d1a58b5798f16f0..e01ebe23c2dfc6c44256c7d2dfb9318ed3381758 100644 (file)
@@ -38,7 +38,7 @@
           My Project
         </h1>
 <section id="section"><h2><a href="#section">Page section</a></h2><blockquote><p>A blockquote.</p></blockquote><pre class="m-code">Preformatted text.
-</pre><p>Paragraph<br />with<br />explicit<br />line<br />breaks.</p><section id="subsection"><h3><a href="#subsection">Page subsection</a></h3><ul><li>Unordered</li><li>list</li><li>of<ul><li>nested</li><li>items</li></ul></li><li>and back</li></ul><section id="subsubsection"><h4><a href="#subsubsection">Sub-sub section</a></h4><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> and <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>. En-dash &ndash; and em-dash &mdash;. Reference to a <a href="index.html#subsection" class="m-dox">Page subsection</a>. Named reference with special characters in title: <a href="warnings.html" class="m-dox">&raquo; Warnings &laquo;</a>. Reference with escaped characters in title: <a href="index.html#an-anchor" class="m-dox">&lt;anchor&gt;</a>.</p></section></section></section>
+</pre><p>Paragraph<br />with<br />explicit<br />line<br />breaks.</p><section id="subsection"><h3><a href="#subsection">Page subsection</a></h3><ul><li>Unordered</li><li>list</li><li>of<ul><li>nested</li><li>items</li></ul></li><li>and back</li></ul><section id="subsubsection"><h4><a href="#subsubsection">Sub-sub section</a></h4><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> and <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>. En-dash &ndash; and em-dash &mdash;. Reference to a <a href="index.html#subsection" class="m-dox">Page subsection</a>. Named reference with special characters in title: <a href="warnings.html" class="m-dox">&raquo; Warnings &laquo;</a>. Reference with escaped characters in&nbsp;title: <a href="index.html#an-anchor" class="m-dox">&lt;anchor&gt;</a>.</p></section></section></section>
       </div>
     </div>
   </div>
index 3203529171b574f6e2a8a1df89fd8bade943f2e7..33fc329ed5f8b2541ea7503d7fba71345c3aa087 100644 (file)
@@ -32,8 +32,8 @@ This is a `typewriter text`, *emphasis* and **bold**. <em>Emphasis with
 <tt>typewriter</tt> and <strong>bold</strong> nested.</em> http://google.com
 and [URL](http://google.com). En-dash -- and em-dash ---. Reference to a
 @ref subsection. Named reference with special characters in title:
-@ref warnings "&raquo; Warnings &laquo;". Reference with escaped characters in
-title: @ref an-anchor "<anchor>".
+@ref warnings "&raquo; Warnings &laquo;". Reference with escaped characters
+in&nbsp;title: @ref an-anchor "<anchor>".
 
 */