Skip to content
Browse files

Fix linebreak escaping issue mozilla/persona#2492 and #10

  • Loading branch information...
1 parent 5ba46d9 commit 16344759d11a33403ad39abfd0da93cbcd667473 @zaach zaach committed Sep 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/po2json.js
View
3 bin/po2json.js
@@ -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 1634475

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