* xmlOutputBufferWriteWSNonSig: * @ctxt: The save context * @extra: Number of extra indents to apply to ctxt->level * * Write out formatting for non-significant whitespace output. */
| 845 | * Write out formatting for non-significant whitespace output. |
| 846 | */ |
| 847 | static void |
| 848 | xmlOutputBufferWriteWSNonSig(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: |
no test coverage detected