From b22049ea14b62a2a743fd5fbd23563c566ef528a Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Mon, 6 May 2019 12:31:08 +0200 Subject: qdoc: Add id attribute for all HTML headings The HTML generator only added an id tag for h2 (\section1) headings for unknown reasons. \section2 and up relied on the obsolete method of using anchors for the section headings. Remove this restriction to make the output more consistent. Change-Id: I577d62cf59cefd199224dacf29ced61518b4b7fc Reviewed-by: Paul Wicking Reviewed-by: Martin Smith --- src/qdoc/htmlgenerator.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/qdoc/htmlgenerator.cpp b/src/qdoc/htmlgenerator.cpp index 39ac26445..23cd581e6 100644 --- a/src/qdoc/htmlgenerator.cpp +++ b/src/qdoc/htmlgenerator.cpp @@ -1157,11 +1157,8 @@ int HtmlGenerator::generateAtom(const Atom *atom, const Node *relative, CodeMark break; case Atom::SectionHeadingLeft: { int unit = atom->string().toInt() + hOffset(relative); - out() << "'; + out() << ""; inSectionHeading_ = true; break; } -- cgit v1.2.3