]> git.openstreetmap.org Git - rails.git/blobdiff - script/locale/po2yaml
Cleanup trailing whitespace
[rails.git] / script / locale / po2yaml
index f2d2eb97cfe4fe7685677d4839ecd1707b63fc4e..e181bf3d5e13bc349b748729f16706047d1e17ba 100755 (executable)
@@ -24,13 +24,13 @@ def po2hash(f)
   path = []
   msgstr = ''
   f.each_line { |line|
-    line = line.strip
+    line.strip!
     if line[0..8] == 'msgctxt "'
       path = line[9..-2].split(':')
     elsif line[0..7] == 'msgstr "'
       msgstr = line[8..-2]
     end
-    
+
     if !path.empty? and !msgstr.empty?
       add_translation(trs, path, msgstr)
       path = []