Coverity reported "structural dead code" as with
```
Commit: 61caf5d22f [61caf5d]
Date: Thursday, October 27, 2022 8:11:43 PM
Improve handling of <details> and <summary> tags
```
these lines were not removed when the ` case DocStyleChange::Summary:` was removed.
With #8890 the HTML details tag had been implemented as a style change though this give a problem when inside the details part there are multiple paragraphs.
The HTML details tag has been reimplementd as a so called `DocNode`, so that it is possible to have multiple paragraphs in a detailed section.
In the past the `Config...` functions did a string lookup and the `static` usage was for speed optimization purposes but nowadays this is not necessary anymore as the "lookup" is done through direct lookup in a `struct`. The `static` is counterproductive as this gives extra thread safe locks.
In the JavaDoc documentation we see:
```
{@code text}
Equivalent to <code>{@literal}</code>.
```
and
```
{@literal text}
Displays text without interpreting the text as HTML markup or nested javadoc tags
```
These commands have been implemented by means of transforming them into doxygen commands.
This implementation also:
- the `{@literal ..}` command, #4953 JavaDoc @literal is not recognized (Origin: bugzilla #688386)
- #4949 JavaDoc @code makes a block element instead of inline element (Origin: bugzilla #688381)
- #4952 JavaDoc @code generates link (Origin: bugzilla #688385)
The id of the caption was not only missing for Xml but also for rtf and docbook.
@doxygen Note: addon/doxmlparser/doxmlparser/compound.py has to be regenerated as well.
A HTML tag `<details>` gives the possibility to specifies additional details that the user can open and close on demand.
See e.g.: https://www.w3schools.com/tags/tag_details.asp
Found indifferent Fossies pakages.
In case of a `\dot` image the dot file is created and when `DOT_CLEANUP` is not set the file is left in the output directory.
In case of the `\dotfile` and the `DOT_CLEANUP` is not set the file is not placed in the output directory as the image can be generated from the original file.
This is a bit inconsistent as we would have for some images a `dot` file and for others we wouldn't.
Similar reasoning for msc and dia
In case we have included sources (e.g. due to `INLINE_SOURCES`) and also the `SOURCE_BROWSER` enabled it is possible that we get double labels.
Also the calculation of labels in RTF was not done consistently, sometimes the path was striper and on other moments it wasn;t (especially seen in case CREATE_SUBDIRS
The problem was found using RTF / Docbook on the doxygen internal documentation (not standard) but will happen too in other projects
With the `<li>` tag in HTML it is possible to have a `value=` attribute, this was only working for the HTML output, but has now been added to other output formats as well.
Also fixed small counting issue in case we have more than the supported number of levels.
(For docbook there is no solution yet)
When running a link checker over the (x)html results of the doxygen tests 12 and subdirs enabled we get the error:
```
Processing file:///.../testing/test_output_012/html/d0/de3/citelist.xhtml
List of broken links and other issues:
file:///..../testing/test_output_012/html/
Lines: 70, 74
Code: 200 (no message)
To do: Some of the links to this resource point to broken URI fragments
(such as index.html#fragment).
The following fragments need to be fixed:
CITEREF_LeLe12 Lines: 70, 74
```
Also looking at the results of rtf and docbook output we see incorrect links.
With the rtf links there is a subsequent problem of not returning the right "label" (see util.h).
This commit changes the following in relation to string use
- The implicit convert from 'QCString' to 'const char *' is removed
- Strings parameters use 'const QCString &' as much as possible in favor
over 'const char *'
- 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())'
- data() now always returns a valid C-string and not a 0-pointer.
- when passing a string 's' to printf and related functions 'qPrint(s)' is
used instead of 's.data()'
- for empty string arguments 'QCString()' is used instead of '0'
- The copy() operation has been removed
- Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and
'qstrcmp(a,b)<0' has been replaced by 'a<b'
- Parameters of string type that were default initialized with '= 0' are
no initialized with '= QCString()'
Not all diagrams can be created with the PlantUML `@startuml` command but need another
PlantUML `@start...` command. This wil look like `@start<engine>` where currently supported are
the following `<engine>`'s: `uml`, `bpm`, `wire`, `dot`, `ditaa`, `salt`, `math`, `latex`,
`gantt`, `mindmap`, `wbs`, `yaml`, `creole`, `json` and `flow`. By default the `<engine>` is
`uml`. The `<engine>` can be specified as an option.
Explicitly the option variant has been chosen so we won't get an explosion of extra commands.