Commits

Ratnadeep Debnath  committed dad2b75

Fix newline validator: Handle line ending with '\n'.

  • Participants
  • Parent commits e257a55

Comments (0)

Files changed (1)

File transifex/resources/formats/validators.py

 
     def validate(self, old, new):
         old = unescape(old)
+        new = unescape(new)
         old_has_newline = old[-1] == '\n'
         new_has_newline = new[-1] == '\n'
         if old_has_newline != new_has_newline: