diff --git a/src/io/json.cpp b/src/io/json.cpp index 1a8cc9d..892d0af 100644 --- a/src/io/json.cpp +++ b/src/io/json.cpp @@ -626,6 +626,11 @@ namespace fc ss<<','; } break; + case 'n': + //If we're in quotes and see a \n, just print it literally but unset the escape flag. + if( quote && escape ) + escape = false; + //No break; fall through to default case default: if( first ) { ss<<'\n';