Skip to main content

Module wrapping

Module wrapping 

Source
Expand description

URL and path-preserving text wrapping.

Wraps text while keeping URLs and file paths as atomic units to preserve terminal link detection and transcript file hit-testing.

Functionsยง

calculate_wrapped_height
Calculate wrapped height using Paragraph::line_count.
contains_preserved_token
Check if text contains a preserved URL/path token.
wrap_line_preserving_urls
Wrap a line, preserving URLs as atomic units.
wrap_lines_preserving_urls
Wrap multiple lines with URL preservation.