Skip to content
This repository
Browse code

Merge pull request #11 from zaach/master

 Fix linebreak escaping issue in po2json.js
  • Loading branch information...
commit b550d53551a3d96502524110779674f7b93c1e0d 2 parents 5ba46d9 + 1634475
Austin King authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  bin/po2json.js
3  bin/po2json.js
@@ -210,7 +210,8 @@ var parse_po_dequote = function(str) {
210 210
   if (match = str.match(/^"(.*)"/)) {
211 211
     str = match[1];
212 212
   }
213  
-  str = str.replace(/\\"/g, '"');
  213
+  str = str.replace(/\\"/g, '"')
  214
+           .replace(/\\n/g, '\n');
214 215
   return str;
215 216
 };
216 217
 

0 notes on commit b550d53

Please sign in to comment.
Something went wrong with that request. Please try again.