View Source NLdoc.Validation.Content (NLdoc.Validation v1.0.1)
This module provides helper functions for validating the content of NLdoc spec objects.
Summary
Functions
Returns true if the given text is visible, i.e. consists anything else than whitespace or invisible characters.
If the given text is an NLdoc.Spec
object, this function will recursively check whether any of its children
contain visible text.
Functions
@spec visible_text?(NLdoc.Spec.object() | String.t() | nil) :: boolean()
Returns true if the given text is visible, i.e. consists anything else than whitespace or invisible characters.
If the given text is an NLdoc.Spec
object, this function will recursively check whether any of its children
contain visible text.