Skip to main content

Module rich_text

Module rich_text 

Source
Expand description

Rich text run types and conversion utilities.

A rich text value is a sequence of RichTextRun segments, each with its own formatting. These map to the <r> (run) elements inside <si> items in xl/sharedStrings.xml.

Structs§

RichTextRun
A single formatted text segment within a rich text cell.

Functions§

rich_text_to_plain
Extract plain text from a slice of rich text runs.
run_to_xml
Convert a high-level RichTextRun into an XML <r> element.
runs_to_si
Convert a slice of RichTextRun into an XML <si> element (for the SST).
xml_to_run
Convert an XML <r> element into a high-level RichTextRun.