From 2db51458047ad800bc99d6ef92e06bbf051f7963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 19 Dec 2016 09:54:14 +0100 Subject: [PATCH] Default back to pretty HTML output for diet-ng. VibeOutputCompactHTML can be used to globally switch to compact output (Diet traits can be used to switch per invocation). --- http/vibe/http/server.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http/vibe/http/server.d b/http/vibe/http/server.d index cf64c99e21..7f4efec3c2 100644 --- a/http/vibe/http/server.d +++ b/http/vibe/http/server.d @@ -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);