Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix linebreak escaping issue in po2json.js #11

Merged
merged 1 commit into from

2 participants

@zaach
Owner

No description provided.

@ozten ozten commented on the diff
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 Collaborator
ozten added a note

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@ozten ozten merged commit b550d53 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2012
  1. @zaach
This page is out of date. Refresh to see the latest.
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');
@ozten Collaborator
ozten added a note

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
return str;
};
Something went wrong with that request. Please try again.