Fix linebreak escaping issue in po2json.js #11

Merged
merged 1 commit into from Sep 20, 2012

Projects

None yet

2 participants

@zaach
Contributor
zaach commented Sep 20, 2012

No description provided.

@ozten ozten commented on the diff Sep 20, 2012
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');
@ozten
ozten Sep 20, 2012 Member

Awesome, thanks!

@ozten ozten merged commit b550d53 into mozilla:master Sep 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment