DitaTopicCompareDotNet WhitespaceProcessingMode Property DeltaXML DITA Compare .NET API Documentation
DeltaXML DITA Compare .NET API Documentation
Specifies how to handle whitespace changes.

Namespace: DeltaXML.DitaCompareApi
Assembly: DeltaXML.DitaCompareApi (in DeltaXML.DitaCompareApi.dll) Version: 9.1.1.1000 (9.1.1.1000)
Syntax

public WhitespaceProcessingMode WhitespaceProcessingMode { get; set; }

Property Value

Type: WhitespaceProcessingMode
Remarks

Specifies how to handle whitespace changes.

When this option is set to 'show' whitespace differences are reported where possible. If the output-format is set to 'dita-markup', this will be wherever the DITA doctype allows text (as opposed to inter-element whitespace). For tracked-changes output formats, all whitespace changes can be shown.

This can lead to a significant amount of marked change throughout the document. When the parameter is set to 'ignore', whitespace differences are not shown; instead the 'B' document's whitespace is kept where possible.

Note that differences in whitespace are never ignored when the XML document explicitly states that the whitespace is important, via the xml:space attribute being set to 'preserve'.

The 'automatic' setting effectively behaves as either 'normalize' or 'ignore' depending on the value of the 'preservation-mode' and the 'output-format' parameters. Here, 'normalize' is chosen when: (1) the lexical preservation mode is set to 'automatic' and the output format is 'dita-markup'; or (2) the lexical preservation mode is set to either 'document' or 'docAndAttrib'. In all other cases, the automatic preservation mode is treated as if it were 'ignore'.

Default:

automatic

See Also