From: Vladimír Vondruš Date: Sat, 19 May 2018 11:23:21 +0000 (+0200) Subject: doxygen: implement . X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=9e64f08bee4db39c423e437d52da06120f148de8;p=blog.git doxygen: implement . --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 317e8a9f..05105e4e 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -546,6 +546,7 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. # Those elements are: # - # -
+ # - # - (if not describing return type) and # - , (those are the same thing!) # - , , @@ -571,7 +572,7 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. end_previous_paragraph = False # Straightforward elements - if i.tag in ['heading', 'blockquote', 'xrefsect', 'variablelist', 'verbatim', 'preformatted', 'itemizedlist', 'orderedlist', 'image', 'table', '{http://mcss.mosra.cz/doxygen/}div']: + if i.tag in ['heading', 'blockquote', 'hruler', 'xrefsect', 'variablelist', 'verbatim', 'preformatted', 'itemizedlist', 'orderedlist', 'image', 'table', '{http://mcss.mosra.cz/doxygen/}div']: end_previous_paragraph = True # describing return type is cut out of text flow, so @@ -1037,6 +1038,10 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. out.parsed += 'Image'.format( ' ' + add_css_class if add_css_class else '', name) + elif i.tag == 'hruler': + assert element.tag == 'para' # is inside a paragraph :/ + out.parsed += '
' + # Custom
with CSS classes (for making dim notes etc) elif i.tag == '{http://mcss.mosra.cz/doxygen/}div': has_block_elements = True diff --git a/doxygen/test/contents_autobrief_hr/namespaceNamespace.html b/doxygen/test/contents_autobrief_hr/namespaceNamespace.html index fa1eafe3..5cc09f2a 100644 --- a/doxygen/test/contents_autobrief_hr/namespaceNamespace.html +++ b/doxygen/test/contents_autobrief_hr/namespaceNamespace.html @@ -31,7 +31,7 @@
-

SOME HEAVY LICENSE HEADER WITH SOME HEAVY WORDS

+

SOME HEAVY LICENSE HEADER WITH SOME HEAVY WORDS


Functions

diff --git a/doxygen/test/contents_typography/index.html b/doxygen/test/contents_typography/index.html index 66acc16a..0a33ca5c 100644 --- a/doxygen/test/contents_typography/index.html +++ b/doxygen/test/contents_typography/index.html @@ -25,7 +25,7 @@

Page section

A blockquote.

Preformatted text.
 

Paragraph
with
explicit
line
breaks.

Differently
   preformatted
-text.

Page subsection

  • Unordered
  • list
  • of
    • nested
    • items
  • and back

Sub-sub section

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

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

Empty elements:

+text.

Page subsection

  • Unordered
  • list
  • of
    • nested
    • items
  • and back

Sub-sub section

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

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

Empty elements:


Above is a horizontal line.

diff --git a/doxygen/test/contents_typography/input.dox b/doxygen/test/contents_typography/input.dox index 0d437a89..7e5fdce9 100644 --- a/doxygen/test/contents_typography/input.dox +++ b/doxygen/test/contents_typography/input.dox @@ -41,6 +41,10 @@ in title: @ref an-anchor "". Empty elements:

 
+- - -
+
+Above is a horizontal line.
+
 */
 
 /** @page warnings Content that produces warnings