-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML export escapes quotes #56
Comments
A very unsatisfying fix: diff --git a/modules/yaml/src/main/java/org/dhallj/yaml/YamlHandler.java b/modules/yaml/src/main/java/org/dhallj/yaml/YamlHandler.java
index f3f6efa..09dc5d8 100644
--- a/modules/yaml/src/main/java/org/dhallj/yaml/YamlHandler.java
+++ b/modules/yaml/src/main/java/org/dhallj/yaml/YamlHandler.java
@@ -46,7 +46,7 @@ public class YamlHandler implements JsonHandler {
}
public void onString(String value) {
- this.addValue(value.replaceAll("\\\\n", "\n"));
+ this.addValue(value.replaceAll("\\\\n", "\n").replaceAll("\\\\\"", "\""));
}
public void onArrayStart() { |
👍 @ 0.2.1 with this fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another one:
EDIT the newline is irrelevant
The text was updated successfully, but these errors were encountered: