From 56e0be45c78f0c4c0ebc9cdf47d0b2d1af441bf5 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Fri, 4 Apr 2025 11:47:35 +0000 Subject: [PATCH] Revert "Doc: Modify \tabcontent..\endtabcontent macros" This reverts commit 5c0b08a20dd14f7fd8632495aa911fe427f58f7f. After the original commit, DocBook support for tabbed content was introduced (as format-specific macros). This means that the original macros will also have to be HTML-format specific, as macros cannot have both default and format-specific variants defined. In addition to reverting, add linefeeds to (end)tabcontent.HTML macros to solve the same problem that the reverted commit did. In passing, fix an issue with the tabcontent.DocBook macro; it takes a single argument, therefore the placeholder for the value must be \1. Change-Id: I90ed6bc37d70c10754b3b810198ac44fcd189766 Reviewed-by: Paul Wicking Reviewed-by: David Boddie --- doc/global/htmltabs.qdocconf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/global/htmltabs.qdocconf b/doc/global/htmltabs.qdocconf index f8fa075bd8c..e4ba0ee4ab2 100644 --- a/doc/global/htmltabs.qdocconf +++ b/doc/global/htmltabs.qdocconf @@ -38,12 +38,12 @@ # \endtabcontent # \endif -macro.tab.HTML = "\n\n" -macro.tabcontent = "\\div {class=\"tabcontent \1\"}" -macro.endtabcontent = "\\enddiv" +macro.tab.HTML = "" +macro.tabcontent.HTML = "
\n" +macro.endtabcontent.HTML = "
\n" macro.tab.DocBook = "\3" -macro.tabcontent.DocBook = "" +macro.tabcontent.DocBook = "" macro.endtabcontent.DocBook = "" HTML.extraimages += template/style/htmltabs.css