Ticket #7180: jsonPrettyPrint.patch

File jsonPrettyPrint.patch, 604 bytes (added by Paul Chandler <mailslot@…>, 10 years ago)

Proposed patch

  • property_tree/detail/json_parser_write.hpp

    diff -dur boost.old/property_tree/detail/json_parser_write.hpp boost.new/property_tree/detail/json_parser_write.hpp
    old new  
    9393                    stream << Ch(',');
    9494                if (pretty) stream << Ch('\n');
    9595            }
    96             stream << Str(4 * indent, Ch(' ')) << Ch(']');
     96            if (pretty) stream << Str(4 * indent, Ch(' '));
     97            stream << Ch(']');
    9798
    9899        }
    99100        else