Omni Systems, Inc. |  | Mif2Go User's Guide, Version 55 |  |  |  |  |

> 24 Converting tables to HTML > 24.4 Specifying table attributes > 24.4.10 Deciding what to do with empty paragraphs in table cells

### 24.4.10 Deciding what to do with empty paragraphs in table cells

Browsers neither shade nor apply borders to table cells that are empty, or that contain only tags but no content. By default, Mif2Go adds a single nonbreaking space between the opening and closing tags of each otherwise empty table-cell paragraph. This is appropriate for HTML and generic XML, but not for DITA XML or DocBook XML.

You can have Mif2Go do any of the following:

Omit empty paragraph tags

Retain images in otherwise empty paragraphs

Provide content for empty paragraphs

Retain empty paragraph tags.

Omit empty paragraph tags

To omit empty paragraphs from table cells:

[Tables]

; RemoveEmptyTableParagraphs = No (default)

; or Yes (DITA/DocBook default)

RemoveEmptyTableParagraphs = Yes

When RemoveEmptyTableParagraphs=Yes, paragraph tags are omitted for empty paragraphs in table cells (except for preformatted text, where tags are always preserved). If a table cell is blank in FrameMaker (contains only empty paragraphs), in HTML output that cell would consist of only <td></td>.

When RemoveEmptyTableParagraphs=No, the tags for empty paragraphs are retained in table cells.

Retain images in otherwise empty paragraphs

If a table-cell paragraph that contains no text includes an image set to Run into Paragraph, you can specify that the image should be retained even when you have set RemoveEmptyTableParagraphs=Yes:

[Graphics]

; RetainRuninImagesForEmptyParagraphs = No (default) or Yes

RetainRuninImagesForEmptyParagraphs=Yes

See §23.5.7 Retaining run-in images in otherwise empty paragraphs.

Provide content for empty paragraphs

To specify text content for otherwise empty paragraphs in table cells:

[Tables]

; EmptyTbCellContent = string to put in otherwise empty paragraphs

; in table cells

EmptyTbCellContent = &nbsp;

The default value for EmptyTbCellContent is a single nonbreaking space: &nbsp;.

Retain empty paragraph tags

To retain paragraph tags but omit text content for empty paragraphs in table cells:

[Tables]

RemoveEmptyTableParagraphs = No

EmptyTbCellContent =

When RemoveEmptyTableParagraphs=Yes, EmptyTbCellContent has no effect.

See also:

§21.3.10 Eliminating empty paragraphs in text

> 24 Converting tables to HTML > 24.4 Specifying table attributes > 24.4.10 Deciding what to do with empty paragraphs in table cells

| Mif2Go User's Guide: 24.4.9.5 Controlling word breaks in table columns |  | Mif2Go User's Guide: 24.4.11 Using shading and color in tables |