BloombergLP::balxml::Formatter_PrettyImplUtil::addNewline

Insert a literal newline into the XML output.

Synopsis

Declared in <balxml_formatter_prettyimpl.h>

static
std::ostream&
addNewline(
    std::ostream& stream,
    State* state);

Description

Write to the specified stream, with formatting depending on the specified state, and update state accordingly. Return the stream. If following a call to openElement, or addAttribute, add a closing > to the opened tag.

Return Value

a reference to the modifiable stream

Parameters

NameDescription
streamoutput stream to write to
stateformatter state to update