<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -226,6 +226,8 @@ def fancy_spaces(string):
 
 def add_fancy_spaces(text):
     &quot;&quot;&quot;Insert fancy spaces&quot;&quot;&quot;
+    if not text:
+        return u&quot;&quot;
     #More than two consecutive:
     text = re.sub(&quot;[ ]{2,}&quot;, fancy_spaces, text)
     #At start of string
@@ -237,6 +239,8 @@ def add_fancy_spaces(text):
     return text
 
 def replace_in_seq(text, *replacements):
+    if not text:
+        return u&quot;&quot;
     for original, replacement in replacements:
         text = text.replace(original, replacement)
     return text</diff>
      <filename>local_apps/pootle_app/views/language/translate_page.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1d088351bdbe0ca83e8cba168db7d832d0a38313</id>
    </parent>
  </parents>
  <author>
    <name>friedelwolff</name>
    <email>friedelwolff@54714841-351b-0410-a198-e36a94b762f5</email>
  </author>
  <url>http://github.com/translateorgza/pootle/commit/f6349e8fd19b88599f12f0bdd2570a3b3a9f234a</url>
  <id>f6349e8fd19b88599f12f0bdd2570a3b3a9f234a</id>
  <committed-date>2009-06-05T12:08:01-07:00</committed-date>
  <authored-date>2009-06-05T12:08:01-07:00</authored-date>
  <message>Some fixes for handling empty target strings in some XLIFF files. [Sortof a forward port of 11355, although it needed to be adapted]

git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/Pootle@11356 54714841-351b-0410-a198-e36a94b762f5</message>
  <tree>f8309e3dcd58b2602adcde50526f93e0da222329</tree>
  <committer>
    <name>friedelwolff</name>
    <email>friedelwolff@54714841-351b-0410-a198-e36a94b762f5</email>
  </committer>
</commit>
