Skip to main content

Module text

Module text 

Source
Expand description

Plain text documents.

Structsยง

Comment ๐Ÿ”’
Comment text without delimiters. It holds no carriage return, no control character other than line feed and tab, and no line or paragraph separator.
Rendered ๐Ÿ”’
TextDocument ๐Ÿ”’
A validated plain text document. Rendering cannot fail.
Wrap
A positive column count for wrapping text.
Wrapped ๐Ÿ”’
Text with every line broken at word boundaries to fit a column count.

Enumsยง

CommentSyntax
Comment delimiter for plain text formats that support comments.
DocumentNode
A comment or literal text node in a plain text document.
Part ๐Ÿ”’

Functionsยง

is_unsafe_text_char ๐Ÿ”’
Whether c cannot be written as it is in text that holds line feeds and tabs. That is every control character but those two, and the Unicode line and paragraph separators.