From 4562c317ea8f8c39688a1cb15c4f15d70fb1f8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sat, 8 Feb 2014 13:53:48 +0100 Subject: [PATCH] Fix endless loop for ":javascript" nodes in Diet templates. --- source/vibe/templ/diet.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]~"