compare.ignoreLeadingBlanks parameter

Use the compare.ignoreLeadingBlanks parameter to set or query whether differences in white space at the start of a line are significant when comparing files with the compare command.

 

Availability

query command
set command

 

Scope

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

 

Syntax

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

 

Parameters

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

 

Description

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

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

The query current.compare.ignoreLeadingBlanks command returns on if, for the current view, the compare command will ignore white space at the beginning of the line and off if, for the current view, the compare command will not ignore white space at the beginning of the line.

 

Examples

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

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