compare.ignoreAllBlanks parameter

Use the compare.ignoreAllBlanks parameter to set or query whether differences in white space are significant when comparing files with the compare command.

 

Availability

query command
set command

 

Scope

compare.ignoreAllBlanks is scoped to the current view.
current.compare.ignoreAllBlanks is scoped to the current view.
default.compare.ignoreAllBlanks is globally scoped.
install.compare.ignoreAllBlanks is globally scoped.

 

Syntax

query compare.ignoreAllBlanks
set compare.ignoreAllBlanks [default | on | off]
query current.compare.ignoreAllBlanks
query default.compare.ignoreAllBlanks
set default.compare.ignoreAllBlanks [install | on | off]
query install.compare.ignoreAllBlanks 

 

Parameters

default If you specify the default parameter for the set compare.ignoreAllBlanks command, the current view will use the value of default.compare.ignoreAllBlanks to determine whether the compare command should ignore white space in the line.
on If you specify the on parameter for the set compare.ignoreAllBlanks command, the compare command will ignore the presence of white space in the line for the comparison in the current view.  If you specify the on parameter for the set default.compare.ignoreAllBlanks command, the compare command will ignore the presence of white space in the line for comparisons in any of the document views that have compare.ignoreAllBlanks set to default.
off If you specify the off parameter for the set compare.ignoreAllBlanks command, the compare command will not ignore the presence of white space in the line for the comparison in the current view.  If you specify the off parameter for the set default.compare.ignoreAllBlanks command, the compare command will not ignore the presence of white space in the line for comparisons in any of the document views that have compare.ignoreAllBlanks set to default.
install If you specify the install parameter for the set default.compare.ignoreAllBlanks command, all of the document views that have compare.ignoreAllBlanks set to default will use the value of install.compare.ignoreAllBlanks to determine if the compare command should ignore the presence of white space in the line.

 

Description

The query compare.ignoreAllBlanks command returns the blank comparison setting that will be used by the compare command.

If you do not specify any of the parameters for the set compare.ignoreAllBlanks command, default is assumed.  If you do not specify any of the parameters for the set default.compare.ignoreAllBlanks command, install is assumed.

The query current.compare.ignoreAllBlanks command returns on if, for the current view, the compare command will ignore white space in the line, and off if, for the current view, the compare command will not ignore white space in the line.

 

Examples

query compare.ignoreAllBlanks
set compare.ignoreAllBlanks on
query current.compare.ignoreAllBlanks
query default.compare.ignoreAllBlanks
set default.compare.ignoreAllBlanks off
query install.compare.ignoreAllBlanks 

Related reference
compare command
query command
set command
compare.columns parameter
compare.endColumn parameter
compare.ignoreCase parameter
compare.ignoreComments parameter
compare.ignoreLeadingBlanks parameter
compare.ignoreSequenceNumbers parameter
compare.ignoreTrailingBlanks parameter
compare.startColumn parameter
current parameter
default parameter
install parameter