Doc: Modify \tabcontent..\endtabcontent macros

QDoc markup following the \tabcontent macro should start a new
paragraph. As HTML-specific macros are injected directly into
the output, QDoc's doc parser is not aware that the macro should
start a new paragraph.

Turn the macros into generic, non-format-specific macros,
expanding to \div and \enddiv commands that wrap the tab
content.

Pick-to: 6.5
Change-Id: Ie8313af391b1a38ef74592acac3198fef5b7b310
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
(cherry picked from commit 5c0b08a20dd14f7fd8632495aa911fe427f58f7f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 562e74e3b4e5cb6944cfa1ef64a6ee5d9c015c69)
This commit is contained in:
Topi Reinio 2024-12-18 11:39:02 +00:00 committed by Qt Cherry-pick Bot
parent 724716ea33
commit b735ef7aa6

View File

@ -38,8 +38,8 @@
# \endif
macro.tab.HTML = "<input type=\"radio\" name=\"tabs_\1\" id=\"\2\" \4/><label for=\"\2\">\3</label><style>#\2:checked ~ .\2{display: block;}</style>"
macro.tabcontent.HTML = "<div class=\"tabcontent \1\">"
macro.endtabcontent.HTML = "</div>"
macro.tabcontent = "\\div {class=\"tabcontent \1\"}"
macro.endtabcontent = "\\enddiv"
HTML.extraimages += template/style/htmltabs.css