HP 3000 Manuals

Compress Blank Space [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Compress Blank Space 

Purpose 

Replaces multiple blanks with single blanks.

Default Syntax 

None

This command does not have a default key assignment.  You can either
assign a key to the command using the Assign Key command or issue the
command using Execute Editor Command.

Description 

This command searches the specified number of lines for multiple blank
spaces and replaces them with single blanks.

Procedures 

To remove multiple blanks from a single line: 

   1.  Move the cursor to any column of the line to be compressed.

   2.  Issue Execute Editor Command (E). HP EDIT displays the prompt
       Command:  on the message line.

   3.  Type compress blank space and press Return.  HP EDIT removes
       multiple blanks and replaces them with single blanks.

To remove multiple blanks from several lines: 

   1.  Move the cursor to the first line of the group to be compressed.
       [REV BEG]

   2.  Either type a count or select a block.  This value represents the
       number of lines for which you want to compress blanks beginning at
       the current line.[REV END]

   3.  Issue Execute Editor Command (E). HP EDIT displays the prompt
       Command:  on the message line.

   4.  Type compress blank space and press Return.  EDIT removes multiple
       blanks from each line of the group and replaces them with single
       blanks.

Example 

To remove multiple blanks in the following line: 

           There are   excessive    blanks in  this line.

   1.  Issue Execute Editor Command (E). HP EDIT displays the prompt
       Command:  on the message line.

   2.  Type compress blank space and press Return.  HP EDIT removes
       multiple blanks and replaces them with single blanks as shown:

            There are excessive blanks in this line.

Related Commands 

Compress Blank Lines



MPE/iX 5.0 Documentation