SVN commit 1068336 by ilic: Fixed parsing of message state for review ascriptions. M +10 -3 poascribe.py --- trunk/l10n-support/pology/scripts/poascribe.py #1068335:1068336 @@ -1747,6 +1747,10 @@ """ ascripts = [] + # States are switched on modification ascriptions, + # to be preserved from last modification on review ascriptions. + isfuzz = False + isobs = False for cmnt in amsg.auto_comment: p = cmnt.find(":") if p < 0: @@ -1787,17 +1791,20 @@ if lst: revision = lst.pop(0).strip() or None + # States and separator only make sense on modification ascriptions. seplen = 0 - isfuzz = False - isobs = False - if lst: + if lst and atype == ATYPE_MOD: tmp = lst.pop(0).strip() if _mark_fuzz in tmp: isfuzz = True tmp = tmp.replace(_mark_fuzz, "", 1) + else: + isfuzz = False if _mark_obs in tmp: isobs = True tmp = tmp.replace(_mark_obs, "", 1) + else: + isobs = False if tmp: try: seplen = int(tmp)