Skip to main content

Module inline

Module inline 

Source
Expand description

Rich inline content carried inside a single Run.

Most runs hold plain text (modeled as RunContent::Text(String)), but a handful of HWPX inline elements carry per-occurrence attributes that cannot survive a String round-trip:

  • <hp:tab width="..." leader="..." type="..."/> — explicit tab stop position, leader glyph, and alignment, emitted inside <hp:t> mixed content

For runs that need to carry any such attribute payload, projection emits RunContent::InlineText(InlineText) (a non-exhaustive enum variant added alongside Text(String) for backward compatibility). Plain text runs continue to use Text(String) so the 18-file RunContent::Text surface is undisturbed.

See .docs/research/2026-05-26_tab_fidelity_bugs.md (Bug A / Phase 2) for the underlying investigation.

Structs§

InlineTabAttr
Per-occurrence attributes for an inline <hp:tab> element.
InlineText
A sequence of inline segments that compose a single <hp:t> element with mixed content.

Enums§

InlineSegment
One typed segment inside an InlineText.