Skip to content
/ dedent Public

🔧 Remove shared indentation from a string

License

Notifications You must be signed in to change notification settings

MystPi/dedent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dedent

Remove shared indentation from a string.

Package Version Hex Docs

gleam add dedent
import gleam/io
import dedent.{dedent}

pub fn main() {
  "
  I am at level one

    * level two
    - level two
      - level three

  > That's it!
  "
  |> dedent
  |> io.println
}

Result:

"I am at level one

  * level two
  - level two
    - level three

> That's it!"

Further documentation can be found at https://hexdocs.pm/dedent.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

About

🔧 Remove shared indentation from a string

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages