QDoc: Suppress hollow content sections on pages with no body text


Page templates wrap body content in a section labelled
"Description", and fall back to a flat-text rendering when the
structured content list carries nothing. The flat-text branch is
emitted on every document, even when the underlying body is
empty, so pages with no description — such as group pages whose
documenter omitted a body — render an empty section element
that serves no purpose and reads as a layout glitch in browsers
and Markdown viewers.

Pages whose body is empty now emit no description wrapper at
all. Pages that carry structured blocks render unchanged; pages
that carry plain-text fallbacks render unchanged; pages that
carry neither no longer wrap empty space.

Fixes: QTBUG-146601
Change-Id: I6dc598422da702ec9467b5f620a919b9f2286f2b
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit7cdce6b8285e6a633db4ce920ab2cd9c3c3022cc
parentaa004822a3679aa2b12107dd4bdd5b75b5bee7dd
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 7 May 2026 09:20:49 +0000