Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 16344759d11a33403ad39abfd0da93cbcd667473 1 parent 5ba46d9
@zaach zaach authored
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;
};
Please sign in to comment.
Something went wrong with that request. Please try again.