Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Created October 5, 2018 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscoj/1e507ea281875b455c99c6b0003ed076 to your computer and use it in GitHub Desktop.
Save franciscoj/1e507ea281875b455c99c6b0003ed076 to your computer and use it in GitHub Desktop.
Remove last line feed from multiline string in elixir
content = """
hello!
"""
assert content == "hello!\n"
content = """
hello!\
"""
assert content == "hello!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment