w:noWrap (Table Cell No Content Wrap)

Prevents text from wrapping within a table cell, causing the cell to expand horizontally to fit content on a single line.

Parent elements

Description

w:noWrap is a toggle element that, when set on a cell, prevents its content from wrapping to multiple lines. Instead of wrapping, the cell grows wider, which may push the table beyond its declared width.

It is defined in ECMA-376 Part 1 §17.4.31.

Attributes

Attribute Type Possible Values Description
w:val ST_OnOff true, false, 1, 0, on, off Enables or disables no-wrap. Omitting w:val is equivalent to true.

Examples

<w:tc>
  <w:tcPr>
    <w:noWrap/>
  </w:tcPr>
  <w:p><w:r><w:t>Long label that should not wrap</w:t></w:r></w:p>
</w:tc>

Notes

  • w:noWrap interacts with w:tblLayout: in a fixed-layout table, the cell may overflow into adjacent cells or be clipped if there is no room to expand.
  • In autofit tables, w:noWrap reliably prevents wrapping by widening the column.
  • Use with caution in narrow tables — the content may overflow the page margin.