Skip to main content

Table_Merge_Cells

Overview​

Use this rule to merge adjacent table cells that have equal content. A typical use case is product tables where the same image or attribute repeats across rows and should appear as a single merged cell.

How It Works​

Selects which tables to process using gParam1. Leave empty or use -1 to target all tables in the frame. Use comma-separated indexes to select specific tables. Add a pcre: or regexp: prefix to match tables by table style name.

Selects the column range using gParam2. Leave empty or use -1 to apply to all columns. Supports comma-separated indexes or a pcre:/regexp: prefix to match by cell style.

The merge uses the plugin's table::merge_equal function. Cells are merged only when their content is equal. The check spans from the first to the last row in the selected range.

Reference​

#NameTypeDefaultDescription
1TableInteger or String-Table selector. Empty or -1 = all tables. Number = 0-based index. pcre:/regexp: prefix matches by table style
2ColumnInteger or String-Column selector. Empty or -1 = all columns. Number = 0-based index. pcre:/regexp: prefix matches by cell style
3(unused)
4(unused)

Further Reading​