aboutsummaryrefslogtreecommitdiff
path: root/test/examples/input.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'test/examples/input.gleam')
-rw-r--r--test/examples/input.gleam11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/examples/input.gleam b/test/examples/input.gleam
index 352e480..da93d47 100644
--- a/test/examples/input.gleam
+++ b/test/examples/input.gleam
@@ -64,7 +64,16 @@ fn render(model: Model) -> Element(Msg) {
email_input(model.email),
password_input(model.password),
remember_checkbox(model.remember_me),
- pre([attribute.class("debug")], [t(string.inspect(model))]),
+ pre(
+ [attribute.class("debug")],
+ [
+ string.inspect(model)
+ |> string.replace("(", "(\n ")
+ |> string.replace(", ", ",\n ")
+ |> string.replace(")", "\n)")
+ |> t,
+ ],
+ ),
]),
],
)