git.delta.rocks / jrsonnet / refs/commits / 759cfac6e9bd

difftreelog

fix std.manifestJsonEx should respect custom newline value in empty objects and arrays

Yaroslav Bolyukin2023-04-08parent: #a9f4c61.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/manifest.rsdiffbeforeafterboth
177 buf.push_str(cur_padding);177 buf.push_str(cur_padding);
178 }178 }
179 } else if mtype == JsonFormatting::Std {179 } else if mtype == JsonFormatting::Std {
180 buf.push_str("\n\n");180 buf.push_str(options.newline);
181 buf.push_str(options.newline);
181 buf.push_str(cur_padding);182 buf.push_str(cur_padding);
182 } else if mtype == JsonFormatting::ToString || mtype == JsonFormatting::Manifest {183 } else if mtype == JsonFormatting::ToString || mtype == JsonFormatting::Manifest {
183 buf.push(' ');184 buf.push(' ');
226 buf.push_str(cur_padding);227 buf.push_str(cur_padding);
227 }228 }
228 } else if mtype == JsonFormatting::Std {229 } else if mtype == JsonFormatting::Std {
229 buf.push_str("\n\n");230 buf.push_str(options.newline);
231 buf.push_str(options.newline);
230 buf.push_str(cur_padding);232 buf.push_str(cur_padding);
231 } else if mtype == JsonFormatting::ToString || mtype == JsonFormatting::Manifest {233 } else if mtype == JsonFormatting::ToString || mtype == JsonFormatting::Manifest {
232 buf.push(' ');234 buf.push(' ');