diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/plumber | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/plumber b/.local/bin/plumber index 0c575b9..5d7b0bc 100755 --- a/.local/bin/plumber +++ b/.local/bin/plumber @@ -27,7 +27,9 @@ defmodule TextPlumber do end def singleLineOf(text) do - String.replace(text, "\n", "") |> IO.puts() + String.replace(text, "\n", " ") + |> String.replace(~r/\s\s+/, " ", global: true) + |> IO.puts() end end |