X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=src%2FHtml.lhs;h=a3ff54f19c3f0780bf5debf114110aa991bc5a5e;hb=cb848b5425d038494bffb361e7f99e4996599723;hp=632dcfea87ff06c97d9a1b7601ebc9b7975175aa;hpb=173630fcedd7f473b0b7d28592b53288c1eff418;p=wix.git
diff --git a/src/Html.lhs b/src/Html.lhs
index 632dcfe..a3ff54f 100644
--- a/src/Html.lhs
+++ b/src/Html.lhs
@@ -1,4 +1,8 @@
\begin{code}
+-- Copyright 2008 the Contributors, as shown in the revision logs.
+-- Licensed under the Apache Public Source License 2.0 ("the License").
+-- You may not use this file except in compliance with the License.
+
module Html
where
import Edu_Berkeley_Sbp_Haskell_SBP
@@ -27,7 +31,7 @@ style =
" LI { margin-top: 5px; }\n"++
" body { color: #333333; }\n"++
" blockquote { font-style: italic; width: 100% }\n"++
- " div.warn { border: 1px solid red; background-color: #fbb; color: white; }\n"++
+ " div.warn { border: 1px solid #f44; border-top: 5px solid #f44; background-color: #fbb; color: white; }\n"++
" td.warn { color: black; }\n"++
" div.announce { border: 1px solid green; background-color: #bfb; color: white; }\n"++
" td.announce { color: black; }\n"++
@@ -179,8 +183,9 @@ instance ToHtml Paragraph where
toHtml (P t) = stag "p" $ toHtml t
-link ref body = ""++icon++body++""
+link ref body = ""++icon++body++""
where
+ urlify = toHtml
icon = if ".pdf" `isSuffixOf` ref then " "
else if "mailto:" `isPrefixOf` ref then " "
else ""
@@ -232,6 +237,8 @@ instance ToHtml Text where
toHtml (Command "green" y) = ""++(toHtml y)++""
toHtml (Command "sc" y) = "