[#BloombergLP-balxml-Formatter_CompactImplUtil-addNewline]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Formatter_CompactImplUtil.adoc[Formatter&lowbar;CompactImplUtil]::addNewline
:relfileprefix: ../../../
:mrdocs:

Insert a literal newline into the XML output of the specified `stream`, with formatting depending on the specified `state`, and update `state` accordingly&period; Return the `stream`&period; If following a call to `openElement`, or `addAttribute`, add a closing `&gt;` to the opened tag&period;

== Synopsis

Declared in `&lt;balxml&lowbar;formatter&lowbar;compactimpl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::ostream&
addNewline(
    std::ostream& stream,
    xref:BloombergLP/balxml/Formatter_CompactImplUtil/State.adoc[State]* state);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
