[xml] xmlTextWriterSetIndent and significant whitespace



Hi,

I'd have expected xmlTextWriter's output with xmlTextWriterSetIndent to
be the same as the tree api's output with xmlIndentTreeOutput = 1, but
that isn't the case. Consider the output of the attached testcase:

Output of tree api:
<?xml version="1.0"?>
<root>
  <element>TEST</element>
</root>

Output of xmlWriter api:
<?xml version="1.0"?>
<root>
  <element>TEST  </element>
</root>

Note the extra whitespace after "TEST".

Is this the intended behaviour or a bug in xmlWriter indentation
implementation?

Thanks,
        Christian

Attachment: test.c
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]