summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-03-19 23:57:58 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-03-19 23:57:58 +0000
commit861f2c54c572218763130c9ce72819c78f0309dd (patch)
tree8c3493db0d70ee2575d2f7f6052c66452f307de6
parent41e3bf2cace901aa090bca74e31f61e8ced84ed3 (diff)
downloaddocutils-861f2c54c572218763130c9ce72819c78f0309dd.tar.gz
do not encode embedded stylesheets, because HTML entities are
not decoded by the browser before the style sheet is passed to the CSS parser git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils/docutils@5029 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--writers/html4css1/__init__.py2
-rw-r--r--writers/html4css1/html4css1.css2
2 files changed, 2 insertions, 2 deletions
diff --git a/writers/html4css1/__init__.py b/writers/html4css1/__init__.py
index bd164a6f0..693672b76 100644
--- a/writers/html4css1/__init__.py
+++ b/writers/html4css1/__init__.py
@@ -261,7 +261,7 @@ class HTMLTranslator(nodes.NodeVisitor):
stylesheet = utils.get_stylesheet_reference(
settings, os.path.join(os.getcwd(), 'dummy'))
settings.record_dependencies.add(stylesheet)
- stylesheet_text = self.encode(open(stylesheet).read())
+ stylesheet_text = open(stylesheet).read()
self.stylesheet = [self.embedded_stylesheet % stylesheet_text]
else:
self.stylesheet = [self.stylesheet_link
diff --git a/writers/html4css1/html4css1.css b/writers/html4css1/html4css1.css
index e005f1825..331a2979a 100644
--- a/writers/html4css1/html4css1.css
+++ b/writers/html4css1/html4css1.css
@@ -1,5 +1,5 @@
/*
-:Author: David Goodger (goodger at python.org)
+:Author: David Goodger (goodger@python.org)
:Id: $Id$
:Copyright: This stylesheet has been placed in the public domain.