On Mon, 13 Feb 2017 13:33:32 +0100, Sönke Ludwig wrote:

Definitely not intended. In case of text filters, pretty printing is
simply not implemented, but the head case sounds strange. Can you post a
short snippet that reproduces the issue?

main.dt

extends layout
block title
    title Not a pretty HEAD
block header
    meta(author="Fred")
block content
    p   Blah

layout.dt

doctype html
html(lang="en")
    head
        meta(charset="utf-8")
        block title
        meta(name="viewport", content="width=device-width, initial-scale=1")
        link(rel="stylesheet", href="css/sheet.css")
        block header
        :css
            .navlink {
                display: inline-block;
            }
    body
        block content

dub.sdl

#...
dependency "vibe-d" version="~>0.8.0-beta.1"
dependency "diet-ng" version="~>1.1"
subConfiguration "vibe-d:core" "vibe-core"
versions "VibeDefaultMain"

DUB version 1.2.0, built on Jan 22 2017
DMD64 D Compiler v2.073.0
Linux carl 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

app.d

import vibe.vibe;

shared static this()
{
    auto router = new URLRouter;
    router.get("/", staticTemplate!"main.dt");
    
    auto settings = new HTTPServerSettings;
    settings.port = 8080;
    settings.bindAddresses = ["::1", "127.0.0.1"];
    listenHTTP(settings, router);

    logInfo("Please open http://127.0.0.1:8080/ in your browser.");
}

Resulting output showing single wrapped line in the head, part from layout.dt and part from main.dt:

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8"/><title>Not a pretty HEAD</title><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="css/normalize.css"/><meta author="Fred"/>

<style type="text/css"><!--
	.navlink {
	    display: inline-block;
	    padding-right: 10px;
	}
--></style>
	</head>
	<body>
		<p>  Blah</p>
	</body>
</html>