mirror of
https://github.com/Noratrieb/jsonformat.git
synced 2026-01-14 14:15:03 +01:00
added blank line
This commit is contained in:
parent
34b49d736c
commit
96bfb05a4d
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ pub fn format_json(json: &str, indentation: Option<&str>) -> String {
|
||||||
let mut auto_push = true;
|
let mut auto_push = true;
|
||||||
let mut request_newline = false;
|
let mut request_newline = false;
|
||||||
let old_level = indent_level;
|
let old_level = indent_level;
|
||||||
|
|
||||||
match char {
|
match char {
|
||||||
'"' => in_string = true,
|
'"' => in_string = true,
|
||||||
' ' | '\n' | '\t' => continue,
|
' ' | '\n' | '\t' => continue,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue