use nowrap on pre-blocks
authoradam <adam@megacz.com>
Wed, 28 Jan 2009 22:05:07 +0000 (14:05 -0800)
committeradam <adam@megacz.com>
Wed, 28 Jan 2009 22:05:07 +0000 (14:05 -0800)
darcs-hash:20090128220507-5007d-5325067c2f8bd840f8256284a074b34f0de23bf3.gz

src/Html.lhs

index 7a61bd4..5784cb5 100644 (file)
@@ -313,7 +313,7 @@ htmlEscapeChar '\'' = "&apos;"
 htmlEscapeChar '\"' = "&quot;"
 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)