clean(3)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
NAME
SYNOPSIS
DESCRIPTION
clean removes redundant white spaces from the current buffer, there are three types this command remove:
1)
Any space or tab character at the end of the line. All are removed until the last character is not a space or a tab, or the line is empty. Note that an empty line is not removed unless at the end of the buffer.
2)
Space characters are removed when the next character is a tab, making the space redundant, e.g. the strings " Hello World" and " Hello World" will look identical because the tab character (' ') will indent the text to the 8th column with or without the space so the space can be removed.
3)
Superfluous empty lines at the end of the buffer are removed, leaving only one empty line.
DIAGNOSTICS
NOTES
clean is a macro defined in format.emf.
Most of this command's operation is performed by simple regexp search and replace strings:
a)
Search for: "[\t ]+$" Replace with: "\\0"
b)
Search for: "[ ]+\t" Replace with: "\t"
SEE ALSO
(c) Copyright JASSPA 1999
Last Modified: 1998/08/05
Generated On: 1999/12/01