forked from GitHub/gf-core
Set charset to utf-8 when printing html code. This is needed to get Safari to display resdemo.html correctly.
This commit is contained in:
@@ -37,7 +37,7 @@ appUnlexer f = unlines . map (f . words) . lines
|
|||||||
|
|
||||||
wrapHTML :: String -> String
|
wrapHTML :: String -> String
|
||||||
wrapHTML = unlines . tag . intersperse "<br>" . lines where
|
wrapHTML = unlines . tag . intersperse "<br>" . lines where
|
||||||
tag ss = "<html>":"<body>" : ss ++ ["</body>","</html>"]
|
tag ss = "<html>":"<head>":"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />":"</head>":"<body>" : ss ++ ["</body>","</html>"]
|
||||||
|
|
||||||
lexText :: String -> [String]
|
lexText :: String -> [String]
|
||||||
lexText s = case s of
|
lexText s = case s of
|
||||||
|
|||||||
Reference in New Issue
Block a user