Hello community,

here is the log from the commit of package libyui-ncurses for openSUSE:Factory 
checked in at 2013-02-21 15:04:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-ncurses (Old)
 and      /work/SRC/openSUSE:Factory/.libyui-ncurses.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui-ncurses", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-ncurses/libyui-ncurses.changes    
2012-11-14 09:13:56.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libyui-ncurses.new/libyui-ncurses.changes       
2013-02-21 15:04:10.000000000 +0100
@@ -1,0 +2,7 @@
+Thu Feb 21 09:32:10 CET 2013 - [email protected]
+
+- NCRichText: bug-fix for text in <pre> tags, patch description is
+  shown correctly (bnc #803466)
+- V 2.43.3
+
+-------------------------------------------------------------------

Old:
----
  libyui-ncurses-2.43.2.tar.bz2

New:
----
  libyui-ncurses-2.43.3.tar.bz2

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

Other differences:
------------------
++++++ libyui-ncurses-doc.spec ++++++
--- /var/tmp/diff_new_pack.GLRWQi/_old  2013-02-21 15:04:11.000000000 +0100
+++ /var/tmp/diff_new_pack.GLRWQi/_new  2013-02-21 15:04:11.000000000 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package libyui-ncurses (Version 2.43.2)
+# spec file for package libyui-ncurses (Version 2.43.3)
 #
 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
@@ -16,7 +16,7 @@
 #
 
 Name:          libyui-ncurses-doc
-Version:       2.43.2
+Version:       2.43.3
 Release:       0
 License:       LGPL-2.1 or LGPL-3.0
 Source:                libyui-ncurses-%{version}.tar.bz2

++++++ libyui-ncurses.spec ++++++
--- /var/tmp/diff_new_pack.GLRWQi/_old  2013-02-21 15:04:11.000000000 +0100
+++ /var/tmp/diff_new_pack.GLRWQi/_new  2013-02-21 15:04:11.000000000 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package libyui-ncurses (Version 2.43.2)
+# spec file for package libyui-ncurses (Version 2.43.3)
 #
 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
@@ -17,7 +17,7 @@
 # norootforbuild
 
 Name:          libyui-ncurses
-Version:       2.43.2
+Version:       2.43.3
 Release:       0
 License:       LGPL-2.1 or LGPL-3.0
 Source:                libyui-ncurses-%{version}.tar.bz2

++++++ libyui-ncurses-2.43.2.tar.bz2 -> libyui-ncurses-2.43.3.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-ncurses-2.43.2/ChangeLog 
new/libyui-ncurses-2.43.3/ChangeLog
--- old/libyui-ncurses-2.43.2/ChangeLog 2012-11-13 11:58:05.000000000 +0100
+++ new/libyui-ncurses-2.43.3/ChangeLog 2013-02-21 09:43:20.000000000 +0100
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Thu Feb 21 09:32:10 CET 2013 - [email protected]
+
+- NCRichText: bug-fix for text in <pre> tags, patch description is
+  shown correctly (bnc #803466)
+- V 2.43.3
+
+-------------------------------------------------------------------
 Fri Nov  2 18:11:49 CET 2012 - [email protected]
 
 -  NCApplication: Reimplemented setApplicationTitle from YApplication
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-ncurses-2.43.2/VERSION.cmake 
new/libyui-ncurses-2.43.3/VERSION.cmake
--- old/libyui-ncurses-2.43.2/VERSION.cmake     2012-11-13 11:58:05.000000000 
+0100
+++ new/libyui-ncurses-2.43.3/VERSION.cmake     2013-02-21 09:43:20.000000000 
+0100
@@ -1,6 +1,6 @@
 SET( VERSION_MAJOR "2" )
 SET( VERSION_MINOR "43" )
-SET( VERSION_PATCH "2" )
+SET( VERSION_PATCH "3" )
 SET( VERSION 
"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${GIT_SHA1_VERSION}" )
 
 ##### This is need for the libyui core, ONLY.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-ncurses-2.43.2/src/NCRichText.cc 
new/libyui-ncurses-2.43.3/src/NCRichText.cc
--- old/libyui-ncurses-2.43.2/src/NCRichText.cc 2012-11-13 11:58:05.000000000 
+0100
+++ new/libyui-ncurses-2.43.3/src/NCRichText.cc 2013-02-21 09:43:20.000000000 
+0100
@@ -416,12 +416,6 @@
     const wchar_t * wch = osch;
     std::wstring wstr( wch, 6 );
 
-    size_t llen = 0;           // longest line
-    size_t tmp_len = 0;                // width of current line
-
-    std::list<NCstring>::const_iterator line;  // iterator for list <NCstring> 
mtext
-    std::wstring::const_iterator wstr_it;      // iterator for std::wstring
-
     do
     {
         ++wch;
@@ -442,32 +436,21 @@
     NCstring nctxt( wtxt );
     NCtext ftext( nctxt );
 
+    std::list<NCstring>::const_iterator line;
+    size_t llen = 0;           // longest line
+    
     // iterate through NCtext
     for ( line = ftext.Text().begin(); line != ftext.Text().end(); ++line )
     {
-       tmp_len = 0;
+       size_t tmp_len = 0;
 
-       for ( wstr_it = ( *line ).str().begin(); wstr_it != ( *line 
).str().end() ; ++wstr_it )
-       {
-           // skip html tags
-           if ( *wstr_it == '<' )
-           {
-               wstr_it = find(wstr_it, (*line).str().end(), L'>');
-           }
-           else if ( *wstr_it == '\t' )
-           {
-               tmp_len += myPad()->tabsize();
-           }
-           else
-           {
-               tmp_len += wcwidth( *wstr_it );
-           }
-       }
+        tmp_len = textWidth( (*line).str() );
 
        if ( tmp_len > llen )
            llen = tmp_len;
     }
-
+    yuiDebug() << "Longest line: " << llen << std::endl;
+    
     if ( llen > textwidth )
     {
        textwidth = llen;

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to