aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-02-06 09:38:44 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2011-02-06 09:38:44 -0800
commitaec54899606bed2580394baa1369e58ede20fde8 (patch)
treea51511989bc46bb3f9429ea4b73ff1a0076566e1 /templates
parent8f408e4b7b24bfcf0f6a48522a2d77b0b878d34d (diff)
downloadpandoc-aec54899606bed2580394baa1369e58ede20fde8.tar.gz
Use us-ascii charset in HTML template if --ascii option.
Diffstat (limited to 'templates')
-rw-r--r--templates/html.template8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/html.template b/templates/html.template
index 3f8b76fed..3f0e41679 100644
--- a/templates/html.template
+++ b/templates/html.template
@@ -7,10 +7,18 @@ $else$
$endif$
<head>
$if(html5)$
+$if(ascii)$
+ <meta charset="us-ascii" />
+$else$
<meta charset="utf-8" />
+$endif$
+$else$
+$if(ascii)$
+ <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
$else$
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
$endif$
+$endif$
<meta name="generator" content="pandoc" />
$for(author)$
<meta name="author" content="$author$" />