Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yast2-devtools for openSUSE:Factory 
checked in at 2022-04-14 17:25:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-devtools (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-devtools.new.1941 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-devtools"

Thu Apr 14 17:25:02 2022 rev:104 rq:969770 version:4.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-devtools/yast2-devtools.changes    
2022-01-14 23:13:12.622630620 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-devtools.new.1941/yast2-devtools.changes  
2022-04-14 17:25:34.439271000 +0200
@@ -1,0 +2,19 @@
+Wed Apr 13 08:45:45 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Fix for previous change, trim also the tabs (bsc#1197965)
+- 4.5.2
+
+-------------------------------------------------------------------
+Tue Apr 12 13:20:40 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Fixed generating POT files from XML, trim the leading and
+  trailing white space to be compatible with the Ruby code
+  (bsc#1197965)
+- 4.5.1
+
+-------------------------------------------------------------------
+Wed Apr 06 13:24:58 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Bump version to 4.5.0 (bsc#1198109)
+
+-------------------------------------------------------------------

Old:
----
  yast2-devtools-4.4.2.tar.bz2

New:
----
  yast2-devtools-4.5.2.tar.bz2

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

Other differences:
------------------
++++++ yast2-devtools.spec ++++++
--- /var/tmp/diff_new_pack.tv9mw3/_old  2022-04-14 17:25:35.011271668 +0200
+++ /var/tmp/diff_new_pack.tv9mw3/_new  2022-04-14 17:25:35.015271673 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-devtools
-Version:        4.4.2
+Version:        4.5.2
 Release:        0
 Summary:        YaST2 - Development Tools
 License:        GPL-2.0-or-later

++++++ yast2-devtools-4.4.2.tar.bz2 -> yast2-devtools-4.5.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-devtools-4.4.2/build-tools/scripts/control_to_glade.xsl 
new/yast2-devtools-4.5.2/build-tools/scripts/control_to_glade.xsl
--- old/yast2-devtools-4.4.2/build-tools/scripts/control_to_glade.xsl   
2022-01-11 16:13:44.000000000 +0100
+++ new/yast2-devtools-4.5.2/build-tools/scripts/control_to_glade.xsl   
2022-04-13 11:10:57.000000000 +0200
@@ -16,10 +16,52 @@
   <xsl:attribute name="translatable">yes</xsl:attribute>
 </xsl:attribute-set>
 
-<!-- replace <label> by <property>, keep the original value -->
+<!--
+  Template for trimming leading and trailing white space (spaces and new lines)
+  from a string.
+
+  Notes:
+    - The XSL already contains built-in function "normalize-space()", 
unfortunately
+      this also trims extra white space *inside* the string which we do not 
want
+      in this case. :-(
+    - Inspired by https://stackoverflow.com/a/30463195
+    - In XSL "substring()" function the index starts from 1!!
+-->
+<xsl:template name="trim">
+  <xsl:param name="str"/>
+
+  <xsl:choose>
+    <!-- starts with a new line, tab or space? -->
+    <xsl:when test="string-length($str) &gt; 0 and (substring($str, 1, 1) = 
'&#x0a;' or substring($str, 1, 1) = '&#x09;' or substring($str, 1, 1) = ' ')">
+      <!-- recursively call self with the string without the first character 
-->
+      <xsl:call-template name="trim">
+        <xsl:with-param name="str">
+          <xsl:value-of select="substring($str, 2)"/>
+        </xsl:with-param>
+      </xsl:call-template>
+    </xsl:when>
+    <!-- ends with a new line, tab or space? -->
+    <xsl:when test="string-length($str) &gt; 0 and (substring($str, 
string-length($str)) = '&#x0a;' or substring($str, string-length($str)) = 
'&#x09;' or substring($str, string-length($str)) = ' ')">
+      <!-- recursively call self with the string without the last character -->
+      <xsl:call-template name="trim">
+        <xsl:with-param name="str">
+          <xsl:value-of select="substring($str, 1, string-length($str) - 1)"/>
+        </xsl:with-param>
+      </xsl:call-template>
+    </xsl:when>
+    <!-- otherwise just return the original string -->
+    <xsl:otherwise>
+      <xsl:value-of select="$str"/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
+<!-- replace <label> by <property>, trim the leading and trailing white space 
from the value -->
 <xsl:template match="n:label">
   <xsl:element name="property" use-attribute-sets="translatable_label">
-    <xsl:copy-of select="text()"/>
+    <xsl:call-template name="trim">
+      <xsl:with-param name="str" select="text()"/>
+    </xsl:call-template>
   </xsl:element>
 </xsl:template>
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-devtools-4.4.2/package/yast2-devtools.changes 
new/yast2-devtools-4.5.2/package/yast2-devtools.changes
--- old/yast2-devtools-4.4.2/package/yast2-devtools.changes     2022-01-11 
16:13:44.000000000 +0100
+++ new/yast2-devtools-4.5.2/package/yast2-devtools.changes     2022-04-13 
11:10:57.000000000 +0200
@@ -1,4 +1,23 @@
 -------------------------------------------------------------------
+Wed Apr 13 08:45:45 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Fix for previous change, trim also the tabs (bsc#1197965)
+- 4.5.2
+
+-------------------------------------------------------------------
+Tue Apr 12 13:20:40 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Fixed generating POT files from XML, trim the leading and
+  trailing white space to be compatible with the Ruby code
+  (bsc#1197965)
+- 4.5.1
+
+-------------------------------------------------------------------
+Wed Apr 06 13:24:58 UTC 2022 - Ladislav Slez??k <lsle...@suse.cz>
+
+- Bump version to 4.5.0 (bsc#1198109)
+
+-------------------------------------------------------------------
 Tue Jan 11 11:25:25 UTC 2022 - Josef Reidinger <jreidin...@suse.com>
 
 - Add new rubocop config for the one supported by ruby3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-devtools-4.4.2/package/yast2-devtools.spec 
new/yast2-devtools-4.5.2/package/yast2-devtools.spec
--- old/yast2-devtools-4.4.2/package/yast2-devtools.spec        2022-01-11 
16:13:44.000000000 +0100
+++ new/yast2-devtools-4.5.2/package/yast2-devtools.spec        2022-04-13 
11:10:57.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-devtools
-Version:        4.4.2
+Version:        4.5.2
 Release:        0
 Summary:        YaST2 - Development Tools
 License:        GPL-2.0-or-later

Reply via email to