Skip to content

Commit

Permalink
No need to exchange newlines anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
angelikatyborska committed Jul 8, 2024
1 parent 1b0aee2 commit b53eb64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_version_showcase.ex
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ defmodule Scripts.GenerateVersionShowcase do
full_file_path = Path.join(full_dir_path, file_name)
iframe_src = "/#{relative_dir_path}/#{file_name}"

iframe_srcdoc = ~s(<html lang="en"><head><title>#{iframe_src}</title><style>#{style}</style><link rel="stylesheet" href="#{dist}/build/bitstyles.css"></head><body>#{Enum.join([extra_html, result]) |> String.replace("\n", "")}</body></html>)
iframe_srcdoc = ~s(<html lang="en"><head><title>#{iframe_src}</title><style>#{style}</style><link rel="stylesheet" href="#{dist}/build/bitstyles.css"></head><body>#{Enum.join([extra_html, result])}</body></html>)

File.mkdir_p(full_dir_path)
File.write!(full_file_path, iframe_srcdoc)
Expand Down

0 comments on commit b53eb64

Please sign in to comment.