diff --git a/source/vibe/templ/diet.d b/source/vibe/templ/diet.d index 113e9ed5e7..f2c5c07f9c 100644 --- a/source/vibe/templ/diet.d +++ b/source/vibe/templ/diet.d @@ -1138,7 +1138,7 @@ private string filterJavaScript(string text, size_t indent) auto lines = splitLines(text); string indent_string = "\n"; - while( indent-- >= 0 ) indent_string ~= '\t'; + while( indent-- > 0 ) indent_string ~= '\t'; string ret = indent_string[0 .. $-1]~"