diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-09-25 15:49:54 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-09-25 15:49:54 +0000 |
| commit | 1b0c89fafde2292c03a0a21822ba083dca903bb1 (patch) | |
| tree | 9dd53b04b3012ca8b836c8ba1cadda1b6575968c /docutils/transforms | |
| parent | f80815602799ff058440771456e212325fd6d2f6 (diff) | |
| download | docutils-1b0c89fafde2292c03a0a21822ba083dca903bb1.tar.gz | |
added docutils/writers/support/ directory and removed tools/stylesheets/; updated defaults; removed docutils/transforms/html.py (no longer needed); removed ``_stylesheet_required`` internal setting; updated setup.py
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3901 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/transforms')
| -rw-r--r-- | docutils/transforms/html.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/docutils/transforms/html.py b/docutils/transforms/html.py deleted file mode 100644 index 59b8fb4a9..000000000 --- a/docutils/transforms/html.py +++ /dev/null @@ -1,30 +0,0 @@ -# Author: David Goodger -# Contact: goodger@python.org -# Revision: $Revision$ -# Date: $Date$ -# Copyright: This module has been placed in the public domain. - -""" -Transforms specific to the HTML writer. -""" - -__docformat__ = 'reStructuredText' - -from docutils import nodes, utils -from docutils.transforms import Transform, TransformError - - -class StylesheetCheck(Transform): - - """Check for a proper stylesheet setting.""" - - default_priority = 420 - - def apply(self): - if ( self.document.settings._stylesheet_required and - utils.get_stylesheet_reference(self.document.settings) is None): - self.document.reporter.warning( - 'No stylesheet path or URI given. Use the --stylesheet ' - 'or --stylesheet-path option to specify the location of ' - 'default.css (in the tools/stylesheets/ directory of the ' - 'Docutils distribution).') |
