Fix bug in json pretty printer which broke formatting and possibly
corrupted json
This commit is contained in:
parent
7966587021
commit
07e3947ed4
1 changed files with 5 additions and 0 deletions
|
|
@ -626,6 +626,11 @@ namespace fc
|
||||||
ss<<',';
|
ss<<',';
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
if( first ) {
|
if( first ) {
|
||||||
ss<<'\n';
|
ss<<'\n';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue