|
|
|
Normalize White Spaces
In texts such as scripts or
programming source code the white spaces are unimportant. To find
and replace strings or blocks of a text with the same semantic
the White Space Normalization is useful.
The algorithm replaces the white spaces (space, non-breaking
space, end-of-line characters, tabulator) with spaces. Further,
the sequential spaces are replaced with a single space. The
following table shows possible strings that are evaluated to the
same white space normalized strings.
| Original
string |
White-space
normalized |
function
MyFunction()
{
return "a";
} |
function
MyFunction() { return "a"; } |
function
MyFunction()
{
return "a";
} |
function
MyFunction()
{
return "a";
} |
function
MyFunction()
{ return "a"; } |
| function
MyFunction() { return "a"; } |
The white space normalization, if
selected, is applied to the find-what string, and to the data
read from the source file. It is not applied to the replace-with
string.
See also
Overview, Setting
It Up, Files, Strings, Ignore White Spaces
|