From c585d3366ec8e74bb440a6126a5e6a273a5b0a89 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 1 Apr 2025 13:43:34 +1000 Subject: [PATCH] Fix sipify test --- .../sipify/sipifyheader.expected_pyqt5.sip | 16 +++++++++------- .../sipify/sipifyheader.expected_pyqt6.sip | 16 +++++++++------- tests/code_layout/sipify/sipifyheader.h | 1 + 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/tests/code_layout/sipify/sipifyheader.expected_pyqt5.sip b/tests/code_layout/sipify/sipifyheader.expected_pyqt5.sip index 4987bb8448a..503925bc05d 100644 --- a/tests/code_layout/sipify/sipifyheader.expected_pyqt5.sip +++ b/tests/code_layout/sipify/sipifyheader.expected_pyqt5.sip @@ -63,7 +63,8 @@ class QgsSipifyHeader : QtClassQVariantBase %Docstring(signature="appended") Documentation goes here. -Here's some comment mentioning another class :py:class:`QgsAutoAwesomemater`.makeAwesome. +Here's some comment mentioning another class +:py:class:`QgsAutoAwesomemater`.makeAwesome. .. note:: @@ -188,16 +189,16 @@ Factory annotation void LongDocStringMethod(); %Docstring -My long doc string -is not very interesting! +My long doc string is not very interesting! %End void LongDocStringMethodWithBrief(); %Docstring some brief -My long doc ``string`` -is not very interesting! -Here's some comment mentioning another class :py:class:`QgsAutoAwesomemater`.makeLessAwesome. + +My long doc ``string`` is not very interesting! Here's some comment +mentioning another class +:py:class:`QgsAutoAwesomemater`.makeLessAwesome. %End MyPointer *pointerReturnValue(); @@ -219,7 +220,8 @@ I return a pointer. If something bad happens, I return ``None``. void complexDefaultValueAndType( QList>> list = QList>> ); %Docstring -complex default value and type (i.e. containing commas) should be given as a string with single quotes +complex default value and type (i.e. containing commas) should be given +as a string with single quotes %End int inlineKeyWordShouldNotAppear(); diff --git a/tests/code_layout/sipify/sipifyheader.expected_pyqt6.sip b/tests/code_layout/sipify/sipifyheader.expected_pyqt6.sip index ce7860c4cd3..0b3660cb71b 100644 --- a/tests/code_layout/sipify/sipifyheader.expected_pyqt6.sip +++ b/tests/code_layout/sipify/sipifyheader.expected_pyqt6.sip @@ -63,7 +63,8 @@ class QgsSipifyHeader : QtClassQVariantBase %Docstring(signature="appended") Documentation goes here. -Here's some comment mentioning another class :py:class:`QgsAutoAwesomemater`.makeAwesome. +Here's some comment mentioning another class +:py:class:`QgsAutoAwesomemater`.makeAwesome. .. note:: @@ -188,16 +189,16 @@ Factory annotation void LongDocStringMethod(); %Docstring -My long doc string -is not very interesting! +My long doc string is not very interesting! %End void LongDocStringMethodWithBrief(); %Docstring some brief -My long doc ``string`` -is not very interesting! -Here's some comment mentioning another class :py:class:`QgsAutoAwesomemater`.makeLessAwesome. + +My long doc ``string`` is not very interesting! Here's some comment +mentioning another class +:py:class:`QgsAutoAwesomemater`.makeLessAwesome. %End MyPointer *pointerReturnValue(); @@ -219,7 +220,8 @@ I return a pointer. If something bad happens, I return ``None``. void complexDefaultValueAndType( QList>> list = QList>> ); %Docstring -complex default value and type (i.e. containing commas) should be given as a string with single quotes +complex default value and type (i.e. containing commas) should be given +as a string with single quotes %End int inlineKeyWordShouldNotAppear(); diff --git a/tests/code_layout/sipify/sipifyheader.h b/tests/code_layout/sipify/sipifyheader.h index 31375e2042f..ab2b349887b 100644 --- a/tests/code_layout/sipify/sipifyheader.h +++ b/tests/code_layout/sipify/sipifyheader.h @@ -229,6 +229,7 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass, private Ui::QgsBas /** * \brief some brief + * * My long doc \a string * is not very interesting! * Here's some comment mentioning another class QgsAutoAwesomemater::makeLessAwesome.