Right Justify Line [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Right Justify Line
Purpose
Right justifies text on a line.
Default Syntax
[n] ESC J
where n is a count that represents the number of lines to justify
beginning at the cursor line. The default value of n is 1.
Description
This command right justifies one or more lines of text between the left
margin and the current right margin column. HP EDIT adds blank spaces
between words until the last non-blank character occupies the right
margin column. The right margin column is determined by the join length
variable. The default value is 80 for unnumbered or COBOL files, and 72
for standard numbered files.
You can alter the join length by executing the Set Options command and
changing the value of the Join Length field. You can specify a right
margin column that is less than or equal to the default, but not greater
than the default. The non-default value you provide for this field only
affects the current session. You can save this new default for other
subsequent sessions, if desired, by using the Save Config File command.
HP EDIT does not justify a line that is longer than the join length. HP
EDIT also does not justify blank lines or shorter text lines in which
more than 5 blank spaces would occur between words.
Procedures
To right justify a line using the default join length:
1. Move the cursor to a column anywhere on the line to be justified.
2. Press ESC and the J key. HP EDIT justifies the text between the
left and right margins.
To right justify more than one line using the default join length:
1. Move the cursor to a column anywhere on the first line of the
group to be justified.
[REV BEG]
2. Either specify a count or select a block. This value represents
the number of lines you want to justify beginning at the current
line.[REV END]
3. Press ESC and the J key. HP EDIT justifies the text between the
left and right margins for the group of lines.
To right justify a line using another join length:
1. Execute the Set Options command (O).
2. Press the j key to modify the Join Length field.
3. Enter the numeric value representing the right margin column and
press Return.
4. Press Return to return to your editing session.
5. Move the cursor to a column anywhere on the line to be right
justified.
6. Press ESC and the J key. HP EDIT right justifies the text between
the left margin and the user-defined right margin.
Related Commands
Join Lines And Justify
MPE/iX 5.0 Documentation