MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlOutputBufferWriteWSNonSig

Function xmlOutputBufferWriteWSNonSig

ThirdParty/libxml2/vtklibxml2/xmlsave.c:847–860  ·  view source on GitHub ↗

* xmlOutputBufferWriteWSNonSig: * @ctxt: The save context * @extra: Number of extra indents to apply to ctxt->level * * Write out formatting for non-significant whitespace output. */

Source from the content-addressed store, hash-verified

845 * Write out formatting for non-significant whitespace output.
846 */
847static void
848xmlOutputBufferWriteWSNonSig(xmlSaveCtxtPtr ctxt, int extra)
849{
850 int i;
851 if ((ctxt == NULL) || (ctxt->buf == NULL))
852 return;
853 xmlOutputBufferWrite(ctxt->buf, 1, "\n");
854 for (i = 0; i < (ctxt->level + extra); i += ctxt->indent_nr) {
855 xmlOutputBufferWrite(ctxt->buf, ctxt->indent_size *
856 ((ctxt->level + extra - i) > ctxt->indent_nr ?
857 ctxt->indent_nr : (ctxt->level + extra - i)),
858 ctxt->indent);
859 }
860}
861
862/**
863 * xmlNsDumpOutput:

Callers 3

xmlNsDumpOutputFunction · 0.85
xmlAttrDumpOutputFunction · 0.85

Calls 1

xmlOutputBufferWriteFunction · 0.85

Tested by

no test coverage detected