xmllite/writer: Fix indentation on WriteElementString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5f4ed88ee8
commit
5773a5d3b4
|
@ -1132,15 +1132,19 @@ static void test_indentation(void)
|
||||||
hr = IXmlWriter_WriteElementString(writer, NULL, bW, NULL, NULL);
|
hr = IXmlWriter_WriteElementString(writer, NULL, bW, NULL, NULL);
|
||||||
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||||
|
|
||||||
|
hr = IXmlWriter_WriteElementString(writer, NULL, bW, NULL, NULL);
|
||||||
|
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||||
|
|
||||||
hr = IXmlWriter_WriteEndElement(writer);
|
hr = IXmlWriter_WriteEndElement(writer);
|
||||||
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||||
|
|
||||||
hr = IXmlWriter_Flush(writer);
|
hr = IXmlWriter_Flush(writer);
|
||||||
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||||
|
|
||||||
CHECK_OUTPUT_TODO(stream,
|
CHECK_OUTPUT(stream,
|
||||||
"<a>\r\n"
|
"<a>\r\n"
|
||||||
" <b />\r\n"
|
" <b />\r\n"
|
||||||
|
" <b />\r\n"
|
||||||
"</a>");
|
"</a>");
|
||||||
|
|
||||||
IStream_Release(stream);
|
IStream_Release(stream);
|
||||||
|
|
|
@ -843,6 +843,7 @@ static HRESULT WINAPI xmlwriter_WriteElementString(IXmlWriter *iface, LPCWSTR pr
|
||||||
}
|
}
|
||||||
|
|
||||||
write_encoding_bom(This);
|
write_encoding_bom(This);
|
||||||
|
write_node_indent(This);
|
||||||
write_output_buffer(This->output, ltW, ARRAY_SIZE(ltW));
|
write_output_buffer(This->output, ltW, ARRAY_SIZE(ltW));
|
||||||
write_output_qname(This->output, prefix, local_name);
|
write_output_qname(This->output, prefix, local_name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue