Merge Code Lines

Combines sequential instances of the specified element into a single block in the current file or book.

This command prompts for an element name to merge. While processing, it locates multiple (2 or more) instances of the specified element and combines them into a single element of the same name. Each merged element is terminated with a line break (SHIFT+ENTER).

Note: The attribute settings of the first element are migrated to the new container element, while any attributes on later elements will be lost.

This is intended to be used to combine multiple separate instances of codeblock or similar elements into a single block element. If multiple element types need to be merged, run this command for each element type.

When checking for sequential elements, the outputclass attribute value is also compared. If the attribute values diffe, the elements won’t be merged.

You can pre-set these values in the MergeElems parameter in the fm2dita.ini file. Refer to the information in Editing the fm2dita.ini File for details on this INI parameter.

This command must be run after the EDD has been applied.