use nowrap on pre-blocks
[wix.git] / src / Html.lhs
index 7a61bd4..5784cb5 100644 (file)
@@ -313,7 +313,7 @@ htmlEscapeChar '\'' = "'"
 htmlEscapeChar '\"' = """
 htmlEscapeChar c    = [c]
 
-pre x = "\n<div class=pre>"++ (pre' x) ++ "\n</div>\n"
+pre x = "\n<div class=pre style='white-space:nowrap'>"++ (pre' x) ++ "\n</div>\n"
  where
   pre' (' ':b)         = "&nbsp;"++(pre' b)
   pre' ('\n':b)        = "<br/>\n"++(pre' b)