[#BloombergLP-bdlb-Print-newlineAndIndent]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Print.adoc[Print]::newlineAndIndent
:relfileprefix: ../../../
:mrdocs:

Emit to the specified `stream` a newline (&grave;
&grave;) followed by the number of spaces (` `) equal to the absolute value of the product of the specified `level` and `spacesPerLevel` or, if `spacesPerLevel` is negative, emit a single space (and _no_ newline)&period; Return a reference providing modifiable access to `stream`&period; The behavior is undefined unless the absolute value of the product of the specified `level` and `spacesPerLevel` is representable as `int`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;print&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::ostream&
newlineAndIndent(
    std::ostream& stream,
    int level,
    int spacesPerLevel = 4);
----


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