Skip to content

Commit

Permalink
chore: trim before warning on dsl doc lines
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Sep 14, 2023
1 parent 0c77607 commit f440aa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/spark/cheat_sheet.ex
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ defmodule Spark.CheatSheet do

defp escape_pipes(string) do
string
|> String.trim()
|> String.replace("|", "\\|")
|> tap(fn thing ->
if String.contains?(thing, "\n") do
Expand Down

0 comments on commit f440aa5

Please sign in to comment.