Skip to content

Commit

Permalink
Update lib/kino/process.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
hugobarauna and jonatanklosko committed Jun 13, 2024
1 parent 8ce6b30 commit 4a8b4f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kino/process.ex
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ defmodule Kino.Process do
defp format_for_mermaid_participant_alias(pid, process_label) do
pid_text = :erlang.pid_to_list(pid) |> List.to_string()

participant_alias = "#{inspect(process_label)}<br/>#{pid_text}"
String.replace(participant_alias, "\"", "")
label = process_label |> inspect() |> String.replace(~s{"}, "")
"#{label}<br/>#{pid_text}"
end

defp maybe_add_participant({participants, idx}, pid) when is_pid(pid) do
Expand Down

0 comments on commit 4a8b4f9

Please sign in to comment.