Function

AppStream-1.0AppStreammarkup_strsplit_wordsSince 0.14.0

  • Splits up a long line into an array of smaller strings, each being no longer than line_len. Words are not split.

    Parameters

    • text: string

      the text to split.

    • line_len: number

      the maximum length of the output line

    Returns string[]

    lines, or null in event of an error

    0.14.0