TJ / TJJ - Text Join Lines

Syntax


TJ[n]

TJJ / TJJ

TJJ is the block form of this command.


Operands


n

The number of lines to be joined. If you do not type a number, or if the number you type is 1, the line on which the TJ is entered will be joined to the line following it.


Description

TJ/TJJ  is used to join together one or more lines as ‘logical' lines, with leading and trailing blanks trimmed off beforehand.  The lines are joined into a single line by concatenating the trimmed original lines together left to right, in order, with a single blank character in between them.  TJ/TJJ  may be thought of as the Text Join or Trimmed Join operation.


A single blank character is inserted between the joined lines.  To insert something else between the lines, it is necessary to use the Glue commands in conjunction with the GLUEWITH command.


Text Joining of lines uses the following rules:


Note: Former Tritus SPF users may recognize the semantics of the SPFLite TJ command as essentially working the same way.


See also the JOIN - Join lines Using Find/Change Strings primary command for more information.



Example 1: Before Text Join:



After Text Join:  



Created with the Personal Edition of HelpNDoc: Create help files for the Qt Help Framework