Prelude API
    Preparing search index...

    Function indentTail

    • Adds indentation to all lines of a string except the first line.

      Useful when embedding fragments that should be correctly indented.

      Parameters

      • input: string

        The multiline string to indent

      • indentation: string = ' '

        The indentation string to add (default: two spaces)

      Returns string

      A new string with all but the first line indented

      indentTail('hello\nworld') // 'hello\n  world'