[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    l10n-support/pology/misc
From:       Chusslove Illich <caslav.ilic () gmx ! net>
Date:       2009-01-31 15:49:53
Message-ID: 1233416993.718691.12569.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 919231 by ilic:

More correction to setting state on embedded diff messages.

 M  +3 -2      diff.py  


--- trunk/l10n-support/pology/misc/diff.py #919230:919231
@@ -1085,11 +1085,12 @@
                     ediff += "\n" + fsep + "\n" + ediff_pf
             lst[item] = ediff
         elif typ == _dt_state:
-            if wdiffs[i][2][0][0] != _equ_tag:
+            stag, spart = wdiffs[i][2][0]
+            if stag != _equ_tag:
                 if _dcmnt_ind_state not in indargs:
                     indargs[_dcmnt_ind_state] = []
                 indargs[_dcmnt_ind_state].append(ediff)
-            setattr(emsg, part, bool(word_ediff_to_new(ediff)))
+            setattr(emsg, part, stag in (_new_tag, _equ_tag) and spart)
         else:
             raise StandardError, ("internal: unknown part '%s' "
                                   "in differencing" % part)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic