BloombergLP::balxml::Formatter_PrettyImplUtil::addBlankLine

Insert one or two newline characters into the specified stream stream such that a blank line results, depending on the specified state, and update the state accordingly. Return the stream. If the last output was a newline, then only one newline is added, otherwise two newlines are added. If following a call to openElement, or addAttribute, add a closing > to the opened tag.

Synopsis

Declared in <balxml_formatter_prettyimpl.h>

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