diff --git a/presentation/dom.nix b/presentation/dom.nix
index 2493474b..3b8d5f0c 100644
--- a/presentation/dom.nix
+++ b/presentation/dom.nix
@@ -147,11 +147,11 @@ let
 
   print-element = name: attrs: content:
     with lib;
-    lib.squash ''
+    squash (trim ''
       <${name}${print-attrs attrs}>
         ${lib.indent "  " content}
       </${name}>
-    '';
+    '');
 
   elements = rec {
     document = { ... }: {