Permalink
Browse files

Merge pull request #11 from zaach/master

 Fix linebreak escaping issue in po2json.js
  • Loading branch information...
2 parents 5ba46d9 + 1634475 commit b550d53551a3d96502524110779674f7b93c1e0d @ozten ozten committed Sep 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/po2json.js
View
@@ -210,7 +210,8 @@ var parse_po_dequote = function(str) {
if (match = str.match(/^"(.*)"/)) {
str = match[1];
}
- str = str.replace(/\\"/g, '"');
+ str = str.replace(/\\"/g, '"')
+ .replace(/\\n/g, '\n');
return str;
};

0 comments on commit b550d53

Please sign in to comment.