@@ -11,14 +11,15 @@ import Initialize
1111import CompileToJS
1212import ExtractNoscript
1313
14−css = "* { padding:0; margin:0; \
15− \hyphens: auto; -moz-hyphens: auto;\
16− \ -webkit-hyphens: auto; -ms-hyphens: auto; }\
17− \body { font-family: Arial; }\
18− \a:link {text-decoration: none}\
19− \a:visited {text-decoration: none}\
20− \a:active {text-decoration: none}\
21− \a:hover {text-decoration: underline; color: #ff8f12;}"
14+css = H.style ! A.type_ "text/css" $ preEscapedToMarkup
15+ ("* { padding:0; margin:0; \
16+ \hyphens: auto; -moz-hyphens: auto;\
17+ \ -webkit-hyphens: auto; -ms-hyphens: auto; }\
18+ \body { font-family: Arial; }\
19+ \a:link {text-decoration: none}\
20+ \a:visited {text-decoration: none}\
21+ \a:active {text-decoration: none}\
22+ \a:hover {text-decoration: underline; color: #ff8f12;}" :: String)
2223
2324makeScript :: String -> H.Html
2425makeScript s = H.script ! A.type_ "text/javascript" ! A.src (H.toValue s) $ ""
@@ -43,7 +44,7 @@ generateHtml libLoc title source =
4344 H.title . H.toHtml $ title
4445 makeScript libLoc
4546 H.script ! A.type_ "text/javascript" $ preEscapedToMarkup js
46− H.style ! A.type_ "text/css" $ preEscapedToMarkup (css :: String)
47+ css
4748 H.body $ body noscript
4849
4950body noscript = do