diff options
author | Thibaut Cuvelier <cuvelier.thibaut@gmail.com> | 2022-07-10 02:15:11 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2022-09-01 18:44:15 +0200 |
commit | d1ee606afacbc0b1677263f2d425c686d3233847 (patch) | |
tree | 0f69eb174001c62b0b2611ba7aa632ea51f8b5f1 /src/qdoc/cppcodemarker.cpp | |
parent | f742e97665c0748ca3681ff93c23cce8d2ce27b3 (diff) | |
download | qttools-d1ee606afacbc0b1677263f2d425c686d3233847.tar.gz |
Fix several issues regarding duplicate/empty xml:id
- Don't output an anchor in a table (except in cells). This is not valid DocBook and will likely never be: https://github.com/docbook/docbook/issues/233
- Output anchors only when their ID is nonempty. This behavior seldom happens when the original \target is empty, which is often a problem in the original file being documented.
- Avoid xml:id clash between a \target and a \section.
- Simplify the code: maintaining a pointer to the next atom is not relevant.
- Improve detection of empty table rows: some tables include keywords between a \row and the first \li, like qtdoc/qmlapp/debugging.qdoc.
Pick-to: 6.4
Change-Id: Iece9a2236741e307995e357e3a2e7f674a16e66f
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
0 files changed, 0 insertions, 0 deletions