Skip to content

Commit

Permalink
Fix endless loop for ":javascript" nodes in Diet templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 8, 2014
1 parent 78e170a commit 4562c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/templ/diet.d
Original file line number Diff line number Diff line change
Expand Up @@ -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]~"<script type=\"text/javascript\">";
ret ~= indent_string~"//<![CDATA[";
Expand Down

0 comments on commit 4562c31

Please sign in to comment.