diff --git a/server/HtmlOrphans.hs b/server/HtmlOrphans.hs
index 64de2f69d03bd3409f5dad051563ebea7f0c746a..aec6fe2aa638ecd0a6048b5b36437b427a736abe 100644
--- a/server/HtmlOrphans.hs
+++ b/server/HtmlOrphans.hs
@@ -118,7 +118,7 @@ badge level = span_ [class_ badgetype]
 
 -- | Lint Levels directly render into badges
 instance ToHtml Level where
-  toHtml level = badge level (toHtml (show level :: Text))
+  toHtml level = do badge level (show level); " "
 
 -- | Hints are just text with a level
 instance ToHtml Hint where
@@ -149,7 +149,6 @@ instance ToHtml (DirResult a) where
     unless (null dirresultDeps) $ ul_ $
       forM_ dirresultDeps $ \missing -> do
         li_ $ do
-          " "
           -- TODO: the whole Maybe Bool thing is annoying; I think that was a
           -- remnant of talking to python stuff and can probably be removed?
           if depFatal missing == Just True