From: Vladimír Vondruš Date: Fri, 22 Feb 2019 22:21:59 +0000 (+0100) Subject: doxygen: treat QT_AUTOBRIEF the same way as JAVA_AUTOBRIEF. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=990d4362fc5736e01cca5ea2843517784873a63c;p=blog.git doxygen: treat QT_AUTOBRIEF the same way as JAVA_AUTOBRIEF. Similar bug ratio. --- diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index c9d47f41..c5268963 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -1565,20 +1565,22 @@ def parse_desc_internal(state: State, element: ET.Element, immediate_parent: ET. # Brief description always needs to be single paragraph because we're # sending it out without enclosing

. if element.tag == 'briefdescription': - # JAVADOC_AUTOBRIEF is *bad* - if state.doxyfile.get('JAVADOC_AUTOBRIEF', False): + # JAVADOC_AUTOBRIEF / QT_AUTOBRIEF is *bad* + if state.doxyfile.get('JAVADOC_AUTOBRIEF', False) or state.doxyfile.get('QT_AUTOBRIEF', False): # See the contents_autobrief_heading / contents_autobrief_hr test # for details (only on Doxygen <= 1.8.14, 1.8.15 doesn't seem to # put block elements into brief anymore) # TODO: remove along with the related test cases once 1.8.14 # support can be dropped if has_block_elements: - logging.warning("{}: JAVADOC_AUTOBRIEF produced a brief description with block elements. That's not supported, ignoring the whole contents of {}".format(state.current, out.parsed)) + logging.warning("{}: JAVADOC_AUTOBRIEF / QT_AUTOBRIEF produced a brief description with block elements. That's not supported, ignoring the whole contents of {}".format(state.current, out.parsed)) out.parsed = '' - # See the contents_autobrief_multiline test for details + # See the contents_autobrief_multiline test for details. This also + # blows up on 1.8.14 when \defgroup is followed by multiple lines + # of text. elif paragraph_count > 1: - logging.warning("{}: JAVADOC_AUTOBRIEF produced a multi-line brief description. That's not supported, using just the first paragraph of {}".format(state.current, out.parsed)) + logging.warning("{}: JAVADOC_AUTOBRIEF / QT_AUTOBRIEF produced a multi-line brief description. That's not supported, using just the first paragraph of {}".format(state.current, out.parsed)) end = out.parsed.find('

') assert out.parsed.startswith('

') and end != -1 @@ -3379,6 +3381,7 @@ copy a link to the result using ⌘ # Boolean values that we want for i in ['CREATE_SUBDIRS', 'JAVADOC_AUTOBRIEF', + 'QT_AUTOBRIEF', 'SHOW_INCLUDE_FILES', 'M_EXPAND_INNER_TYPES', 'M_SEARCH_DISABLED',