Revert "Use us-ascii charset in HTML template if --ascii option."
This reverts commit aec54899606bed2580394baa1369e58ede20fde8.
No need for this, since a UTF-8 charset will handle ascii just fine.
commit47ba15f5a1e4da7d9754dc0258a11798d69254b0
authorJohn MacFarlane <jgm@berkeley.edu>
dateSun 6 Feb 2011, 10:30 (16 years ago)
parentfb5faaa
src/Text/Pandoc/Writers/HTML.hs−1
@@ -178,7 +178,6 @@ inTemplate opts tit auths date toc body' newvars =
178178 (case toc of
179179 Just t -> [ ("toc", showHtmlFragment t)]
180180 Nothing -> []) ++
181− [ ("ascii","true") | writerAscii opts ] ++
182181 [ ("author", a) | a <- authors ]
183182 in renderTemplate context $ writerTemplate opts
184183
templates/html.template−8
@@ -7,17 +7,9 @@ $else$
77$endif$
88<head>
99$if(html5)$
10−$if(ascii)$
11− <meta charset="us-ascii" />
12−$else$
1310 <meta charset="utf-8" />
14−$endif$
15−$else$
16−$if(ascii)$
17− <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
1811$else$
1912 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
20−$endif$
2113$endif$
2214 <meta name="generator" content="pandoc" />
2315$for(author)$