diff --git a/Userland/Shell/AST.cpp b/Userland/Shell/AST.cpp index eeeaac98d34..98c1ac8eec0 100644 --- a/Userland/Shell/AST.cpp +++ b/Userland/Shell/AST.cpp @@ -124,9 +124,7 @@ namespace Shell::AST { static inline void print_indented(const String& str, int indent) { - for (auto i = 0; i < indent; ++i) - dbgprintf(" "); - dbgprintf("%s\n", str.characters()); + dbgln("{}{}", String::repeated(' ', indent * 2), str); } static inline Optional merge_positions(const Optional& left, const Optional& right)