Opened 6 years ago

Last modified 6 years ago

#12149 new Bugs

boost::property_tree::write_json(stream, root, /*pretty=*/false) gives extra std::endl at the end

Reported by: anonymous Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.57.0 Severity: Problem
Keywords: json Cc:

Description

As was noted in #3828, not pretty written json has extra endl at the end.

(Creating a separate ticket, as that one was Fixed and further comments got ignored)

Change History (1)

comment:1 by Erich Keane <erich.keane@…>, 6 years ago

I submitted a pull request for what I believe is a solid fix for this that does the least harm here: https://github.com/boostorg/property_tree/pull/23.

I wonder if the flush behavior is a necessity, but I included it figuring we can remove it easily enough.

Note: See TracTickets for help on using tickets.