use nowrap on pre-blocks
[wix.git] / src / Html.lhs
index 1989e64..5784cb5 100644 (file)
@@ -274,7 +274,7 @@ instance ToHtml Text where
  toHtml (GlyphText TradeMark)     = "™"
  toHtml (GlyphText ServiceMark)   = "™"
  toHtml (GlyphText Emdash)        = "—"
- toHtml (GlyphText Ellipsis)      = "…"
+ toHtml (GlyphText Ellipsis)      = "…"  -- &cdots;?
  toHtml (GlyphText Cent)          = "½"
  toHtml (GlyphText Daggar)        = "†"
  toHtml (GlyphText DoubleDaggar)  = "‡"
@@ -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)