Skip to content

add trim and filter out indentation #10

@tschallacka

Description

@tschallacka

It would be nice if the text could be trimmed of surplus whitespace and beginning and end and whitespace after \n that corresponds with starting indentation is removed.

so

 /**
  foo
  bar
  */

doesn't turn in

 "
      foo
      bar
      "

but in

  "foo
   bar"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions