pub(crate) fn check_text(text: &str) -> Result<(), String>
type’s text must be non-empty, short, and free of control characters other than newline and tab.
type