From 03af089b10e510f2e7eec4776cf9b126d520f901 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Tue, 3 Jan 2023 20:48:04 +0000 Subject: qdoc: Allow snippet marker comments to be indented Snippet marker tags must follow a QDoc-style comment sequence '//!' - but there's no need to require these comments to start from the beginning of the line. Allow whitespace to appear before the comment by trimming the line before comparison. Pick-to: 6.5 6.4 6.2 Fixes: QTBUG-109735 Change-Id: I23e5703bdf518ecf8511075a295b3c404704a065 Reviewed-by: Paul Wicking Reviewed-by: Luca Di Sera --- .../testdata/includefromexampledirs/excludes/parentinclude.qdoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc b/tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc index 1cc47fd56..04007ac12 100644 --- a/tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc +++ b/tests/auto/qdoc/generatedoutput/testdata/includefromexampledirs/excludes/parentinclude.qdoc @@ -12,11 +12,12 @@ */ /*! -//! children-qmlproperty + //! --- Observe the indented snippet tag: + //! children-qmlproperty \qmlproperty list AbstractParent::children \qmldefault \brief Children of the type. -//! children-qmlproperty + //! children-qmlproperty */ /*! -- cgit v1.2.1