X-Git-Url: http://git.megacz.com/?p=wix.git;a=blobdiff_plain;f=src%2FHtml.lhs;h=a3ff54f19c3f0780bf5debf114110aa991bc5a5e;hp=7a61bd4e64d71c6500990b425d792b3a1d6cfbf1;hb=78e11871be7fa7677a0e3822b6e08b3beca1c4b7;hpb=d6cca41c056cb20446676e4229ecedabb60688f9 diff --git a/src/Html.lhs b/src/Html.lhs index 7a61bd4..a3ff54f 100644 --- a/src/Html.lhs +++ b/src/Html.lhs @@ -183,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 "" @@ -313,7 +314,7 @@ htmlEscapeChar '\'' = "'" htmlEscapeChar '\"' = """ htmlEscapeChar c = [c] -pre x = "\n
"++ (pre' x) ++ "\n
\n" +pre x = "\n
"++ (pre' x) ++ "\n
\n" where pre' (' ':b) = " "++(pre' b) pre' ('\n':b) = "
\n"++(pre' b)