G / GG - Glue Lines Together
GG / GG
The number of lines to be glued. If you do not type a number, or if the number you type is 1, the line on which the G is entered will be joined to the line following it.
G/GG is used to glue together one or more lines as ‘physical' lines, without being trimmed beforehand. Any leading or trailing spaces on the lines are retained. The lines are joined into a single line by concatenating them together left to right, in order.
Note: To perform a Glue operation that involves trimming, see the line command TG / TGG - Text Glue Lines.
By default, nothing is inserted between the glued lines; they are simply concatenated together. In effect, lines are glued together with an implied zero-length string between them.
In some cases, it may be useful to specify a particular user-defined string to insert between lines. This is now possible using the GLUEWITH primary command. See the GLUEWITH command, and the example below, for more information. Note that GLUEWITH is a global setting, not associated with a particular file type.
Gluing of lines uses the following rules:
- The lines are treated as raw data
- Blanks are neither added nor removed during the Glue process
- No space or other data is added following the last character of each line before appending the next line, unless GLUEWITH is in effect.
Example 1: Before Glue:
Example 1: Before Glue, GLUEWITH '---' in effect:
Created with the Personal Edition of HelpNDoc: Create help files for the Qt Help Framework