Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ktextwidgets for openSUSE:Factory 
checked in at 2022-08-15 19:57:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ktextwidgets (Old)
 and      /work/SRC/openSUSE:Factory/.ktextwidgets.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ktextwidgets"

Mon Aug 15 19:57:41 2022 rev:106 rq:995003 version:5.97.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ktextwidgets/ktextwidgets.changes        
2022-07-11 19:10:32.779708773 +0200
+++ /work/SRC/openSUSE:Factory/.ktextwidgets.new.1521/ktextwidgets.changes      
2022-08-15 19:59:46.273319594 +0200
@@ -1,0 +2,11 @@
+Sun Aug  7 22:27:40 UTC 2022 - Christophe Giboudeaux <christo...@krop.fr>
+
+- Update to 5.97.0
+  * New feature release
+  * For more details please see:
+  * https://kde.org/announcements/frameworks/5/5.97.0
+- Changes since 5.96.0:
+  * Fix heading level line break handling with Qt 6.3
+  * Adapt tests to Qt 6.3 HTML generation changes
+
+-------------------------------------------------------------------

Old:
----
  ktextwidgets-5.96.0.tar.xz
  ktextwidgets-5.96.0.tar.xz.sig

New:
----
  ktextwidgets-5.97.0.tar.xz
  ktextwidgets-5.97.0.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ktextwidgets.spec ++++++
--- /var/tmp/diff_new_pack.JM5Mkv/_old  2022-08-15 19:59:46.749320921 +0200
+++ /var/tmp/diff_new_pack.JM5Mkv/_new  2022-08-15 19:59:46.753320932 +0200
@@ -17,14 +17,14 @@
 
 
 %define lname   libKF5TextWidgets5
-%define _tar_path 5.96
+%define _tar_path 5.97
 # Full KF5 version (e.g. 5.33.0)
 %{!?_kf5_version: %global _kf5_version %{version}}
 # Last major and minor KF5 version (e.g. 5.33)
 %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | 
awk -F. '{print $1"."$2}')}
 %bcond_without released
 Name:           ktextwidgets
-Version:        5.96.0
+Version:        5.97.0
 Release:        0
 Summary:        KDE Text editing widgets
 License:        LGPL-2.1-or-later

++++++ ktextwidgets-5.96.0.tar.xz -> ktextwidgets-5.97.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ktextwidgets-5.96.0/CMakeLists.txt 
new/ktextwidgets-5.97.0/CMakeLists.txt
--- old/ktextwidgets-5.96.0/CMakeLists.txt      2022-07-02 17:59:11.000000000 
+0200
+++ new/ktextwidgets-5.97.0/CMakeLists.txt      2022-08-07 15:31:17.000000000 
+0200
@@ -1,12 +1,12 @@
 cmake_minimum_required(VERSION 3.16)
 
-set(KF_VERSION "5.96.0") # handled by release scripts
-set(KF_DEP_VERSION "5.96.0") # handled by release scripts
+set(KF_VERSION "5.97.0") # handled by release scripts
+set(KF_DEP_VERSION "5.97.0") # handled by release scripts
 project(KTextWidgets VERSION ${KF_VERSION})
 
 # ECM setup
 include(FeatureSummary)
-find_package(ECM 5.96.0  NO_MODULE)
+find_package(ECM 5.97.0  NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL "https://commits.kde.org/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ktextwidgets-5.96.0/autotests/krichtextedittest.cpp 
new/ktextwidgets-5.97.0/autotests/krichtextedittest.cpp
--- old/ktextwidgets-5.96.0/autotests/krichtextedittest.cpp     2022-07-02 
17:59:11.000000000 +0200
+++ new/ktextwidgets-5.97.0/autotests/krichtextedittest.cpp     2022-08-07 
15:31:17.000000000 +0200
@@ -126,14 +126,18 @@
     const QStringList lines = html.split(QLatin1Char('\n'));
 
     //  for (int idx=0; idx<lines.size(); idx++) {
-    //    qDebug() << ( idx + 1 ) << QString( " : " ) << lines.at( idx );
+    //    qDebug() << ( idx + 1 ) << " : " << lines.at( idx );
     //  }
 
+#if QT_VERSION < QT_VERSION_CHECK(6, 3, 0)
     QVERIFY2(lines.size() == 7,
              "we can't perform this unit test: "
              "the html rendering has changed beyond recognition");
+#else
+    QCOMPARE(lines.size(), 8);
+#endif
 
-    const QString &line6 = lines.at(5);
+    const QString &line6 = lines.at(lines.size() - 2);
 
     // make sure that this is an empty <p> line
     QVERIFY(line6.startsWith(QStringLiteral("<p 
style=\"-qt-paragraph-type:empty;")));
@@ -169,15 +173,19 @@
     //  rendering has actually introduced a bug, or merely a problem with the 
unit test itself
     //
     //  for (int idx=0; idx<lines.size(); idx++) {
-    //    qDebug() << ( idx + 1 ) << QString( " : " ) << lines.at( idx );
+    //    qDebug() << ( idx + 1 ) << " : " << lines.at( idx );
     //  }
 
+#if QT_VERSION < QT_VERSION_CHECK(6, 3, 0)
     QVERIFY2(lines.size() == 9,
              "we can't perform this unit test: "
              "the html rendering has changed beyond recognition");
+#else
+    QCOMPARE(lines.size(), 10);
+#endif
 
     // this is the <ol> declaration line
-    const QString &line6 = lines.at(5);
+    const QString &line6 = lines.at(lines.size() - 4);
 
     //  qDebug() << line6;
 
@@ -213,15 +221,19 @@
     //  rendering has actually introduced a bug, or merely a problem with the 
unit test itself
     //
     //  for (int idx=0; idx<lines.size(); idx++) {
-    //    qDebug() << ( idx + 1 ) << QString( " : " ) << lines.at( idx );
+    //    qDebug() << ( idx + 1 ) << " : " << lines.at( idx );
     //  }
 
+#if QT_VERSION < QT_VERSION_CHECK(6, 3, 0)
     QVERIFY2(lines.size() == 9,
              "we can't perform this unit test: "
              "the html rendering has changed beyond recognition");
+#else
+    QCOMPARE(lines.size(), 10);
+#endif
 
     // this is the <ol> declaration line
-    const QString &line6 = lines.at(5);
+    const QString &line6 = lines.at(lines.size() - 4);
 
     //  qDebug() << line6;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ktextwidgets-5.96.0/po/ca@valencia/ktextwidgets5.po 
new/ktextwidgets-5.97.0/po/ca@valencia/ktextwidgets5.po
--- old/ktextwidgets-5.96.0/po/ca@valencia/ktextwidgets5.po     2022-07-02 
17:59:11.000000000 +0200
+++ new/ktextwidgets-5.97.0/po/ca@valencia/ktextwidgets5.po     2022-08-07 
15:31:17.000000000 +0200
@@ -159,7 +159,7 @@
 #: findreplace/kfinddialog.cpp:116
 #, kde-format
 msgid "Find &backwards"
-msgstr "Busca &enrere"
+msgstr "Busca &arrere"
 
 #: findreplace/kfinddialog.cpp:117
 #, kde-format
@@ -188,8 +188,8 @@
 "searched for within the document and any occurrence is replaced with the "
 "replacement text.</qt>"
 msgstr ""
-"<qt>Si premeu el bot?? <b>Substitu??x</b>, es buscar?? al document el text 
que "
-"heu introdu??t abans i se substituir?? cada ocurr??ncia amb el text de "
+"<qt>Si premeu el bot?? <b>Substitu??x</b>, es buscar?? en el document el text 
"
+"que heu introdu??t abans i se substituir?? cada ocurr??ncia amb el text de "
 "substituci??.</qt>"
 
 #: findreplace/kfinddialog.cpp:212
@@ -287,7 +287,7 @@
 #: findreplace/kfinddialog.cpp:236
 #, kde-format
 msgid "Search backwards."
-msgstr "Busca cap enrere."
+msgstr "Busca cap arrere."
 
 #: findreplace/kfinddialog.cpp:237
 #, kde-format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ktextwidgets-5.96.0/po/zh_CN/ktextwidgets5.po 
new/ktextwidgets-5.97.0/po/zh_CN/ktextwidgets5.po
--- old/ktextwidgets-5.96.0/po/zh_CN/ktextwidgets5.po   2022-07-02 
17:59:11.000000000 +0200
+++ new/ktextwidgets-5.97.0/po/zh_CN/ktextwidgets5.po   2022-08-07 
15:31:17.000000000 +0200
@@ -1,21 +1,9 @@
-# translation of kdelibs4.po to Chinese Simplified
-# Copyright (C) 2007 Free Software Foundation, Inc.
-#
-# Lie Ex <lilith...@gmail.com> 2007-2011.
-# Wang Jian <l...@linux.ustc.edu.cn>, 1998.
-# Sarah Smith <sar...@redhat.com>, 2002.
-# Xiong Jiang <jxi...@offtopic.org>, 2002,2003,2004.
-# Funda Wang <fundaw...@linux.net.cn>, 2002,2003,2004.
-# Liang Qi <cavendish...@gmail.com>, 2007.
-# Feng Chao <chaofeng...@gmail.com>, 2010, 2012, 2014.
-# Ni Hui <shuizhuyuan...@126.com>, 2010, 2011, 2012.
-# Weng Xuetian <wen...@gmail.com>, 2011, 2012, 2013, 2015.
 msgid ""
 msgstr ""
 "Project-Id-Version: kdeorg\n"
 "Report-Msgid-Bugs-To: https://bugs.kde.org\n";
 "POT-Creation-Date: 2021-11-24 00:25+0000\n"
-"PO-Revision-Date: 2022-07-02 10:59\n"
+"PO-Revision-Date: 2022-07-30 15:54\n"
 "Last-Translator: \n"
 "Language-Team: Chinese Simplified\n"
 "Language: zh_CN\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ktextwidgets-5.96.0/src/widgets/krichtextedit.cpp 
new/ktextwidgets-5.97.0/src/widgets/krichtextedit.cpp
--- old/ktextwidgets-5.96.0/src/widgets/krichtextedit.cpp       2022-07-02 
17:59:11.000000000 +0200
+++ new/ktextwidgets-5.97.0/src/widgets/krichtextedit.cpp       2022-08-07 
15:31:17.000000000 +0200
@@ -569,17 +569,21 @@
         handled = true;
     }
 
+    const auto prevHeadingLevel = textCursor().blockFormat().headingLevel();
     if (!handled) {
         KTextEdit::keyPressEvent(event);
     }
 
     // Match the behavior of office suites: newline after header switches to 
normal text
     if (event->key() == Qt::Key_Return //
-        && textCursor().blockFormat().headingLevel() > 0 //
-        && textCursor().atBlockEnd()) {
+        && prevHeadingLevel > 0) {
         // it should be undoable together with actual "return" keypress
         textCursor().joinPreviousEditBlock();
-        setHeadingLevel(0);
+        if (textCursor().atBlockEnd()) {
+            setHeadingLevel(0);
+        } else {
+            setHeadingLevel(prevHeadingLevel);
+        }
         textCursor().endEditBlock();
     }
 

++++++ ktextwidgets-5.96.0.tar.xz.sig -> ktextwidgets-5.97.0.tar.xz.sig ++++++
--- /work/SRC/openSUSE:Factory/ktextwidgets/ktextwidgets-5.96.0.tar.xz.sig      
2022-07-11 19:10:32.747708727 +0200
+++ 
/work/SRC/openSUSE:Factory/.ktextwidgets.new.1521/ktextwidgets-5.97.0.tar.xz.sig
    2022-08-15 19:59:46.265319571 +0200
@@ -1,11 +1,11 @@
 -----BEGIN PGP SIGNATURE-----
 
-iQEzBAABCgAdFiEEU+a0e0XOo+DVt0V3WNDuZIpIs7sFAmLAc6wACgkQWNDuZIpI
-s7tOzQgArqlwjgKpXOqKEOvI0lcFbElo1ljrXCvWBoiK1skKBnDE/tkq9xDWusF/
-vn8eZ+GIHYwrBHA9z4fZ+6oAPtsopo4Iu3JxQuWPDChOvR3x9BXqjJ4v9QCkGzGC
-x0TJ6T9XHPimf96NPYwGpPtf8FUmGNWOIyt56Kytq6hH6Evm/Yfl5c1k9IIMn4Yg
-rZXZAUHBMV51pBKZA1OEo1p51ZZOctCFbysiWNIKxfII/et6aIaSTaAEtUdtigwT
-uSIIKn0n5Akuy2uk5opJvjROvBo2HZLRYNgPKYtvcTGLyQEXa7zF/dOrmOnuSZYR
-oLME3prrGGuh5hahzhWYe/msq2vtPw==
-=b6Uz
+iQEzBAABCgAdFiEEU+a0e0XOo+DVt0V3WNDuZIpIs7sFAmLvxxwACgkQWNDuZIpI
+s7tO8Af+OvMgG45IacrvwIHg+H9/xj3FqO6yKwE55vR2K3YiNkoN6qaw73CvB7jn
+Jcf50p1J5fTTY27JKPzkVfJ12RbPvrnDIsZ6+B4Bda9OZCUtn5TN6txjsNZ5Wdo6
+7FO7/HWp4EqrFfNZXun2HdjfWrYWCKwjQtmwLYTIe9R7dIBprMijXcQF9UK5Eb4/
+6mclhIN0Su2aaOMLfuPwBisyZecCcC8nuBl15LJwXHgHMMia5QlQ0a56cuD2PNjx
+mKzJwFe6+Uny6S0rwyzO7OrqAtSn1WYVP5rNr+Zcj0sB0ob7Sm+bYGLX/otKQGW5
+M6b5/RNib91Lg2W9X+iNAVW/mkGyQg==
+=fDJJ
 -----END PGP SIGNATURE-----

Reply via email to