From 2442872b5f52042f750cc000ca1f580b86cc6d44 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 23 May 2024 23:09:11 +0200 Subject: [PATCH] fix(web): break
too --- web/src/page/debug.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/page/debug.rs b/web/src/page/debug.rs index 2a783692..7a284674 100644 --- a/web/src/page/debug.rs +++ b/web/src/page/debug.rs @@ -142,8 +142,12 @@ fn DocumentNode(obj: serde_json::Value, #[prop(optional)] depth: usize) -> impl {s} }.into_view() } else { + let pretty_string = s + .replace("
", "
\n") + .replace("
", "
\n") + .replace('\n', &newline_replace); view! { - "\""{s.replace("
", "
\n").replace('\n', &newline_replace)}
"\"" + "\""{pretty_string}"\"" }.into_view() } },