Skip to content

Commit

Permalink
Default back to pretty HTML output for diet-ng.
Browse files Browse the repository at this point in the history
VibeOutputCompactHTML can be used to globally switch to compact output (Diet traits can be used to switch per invocation).
  • Loading branch information
s-ludwig committed Dec 19, 2016
1 parent 6a95a5f commit 2db5145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions http/vibe/http/server.d
Expand Up @@ -224,8 +224,12 @@ version (Have_diet_ng)

@dietTraits
private struct DefaultFilters {
import diet.html : HTMLOutputStyle;
import std.string : splitLines;

version (VibeOutputCompactHTML) enum HTMLOutputStyle htmlOutputStyle = HTMLOutputStyle.compact;
else enum HTMLOutputStyle htmlOutputStyle = HTMLOutputStyle.pretty;

static string filterCss(I)(I text, size_t indent = 0)
{
auto lines = splitLines(text);
Expand Down

0 comments on commit 2db5145

Please sign in to comment.