https://github.com/DioxusLabs/dioxus/issues/4504 Co-authored-by: Nils Loewen <nils@blockrewards.ca>
This commit is contained in:
1 parent
d0c4376790
commit
022124e512
1 file changed
+1
-1
@@ -164,7 +164,7 @@ fn unwrapped(raw: String) -> String {
|
|||||||
.strip_suffix("}\n")
|
.strip_suffix("}\n")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.lines()
|
.lines()
|
||||||
.map(|line| line.strip_prefix(" ").unwrap()) // todo: set this to tab level
|
.map(|line| line.strip_prefix(" ").unwrap_or_default()) // todo: set this to tab level
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user