summaryrefslogtreecommitdiff
path: root/docutils
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-12-08 14:10:05 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-12-08 14:10:05 +0000
commit093ccc2db5888b543384b60aaf15486edbb3668d (patch)
treecbb9df5b867574cf1c179ea857dc090c2fc736b6 /docutils
parentfe192b3f0a048929033dd075527a5188d3c8fa51 (diff)
downloaddocutils-093ccc2db5888b543384b60aaf15486edbb3668d.tar.gz
restored get_stylesheet_reference functionality to pre-r5800; spelling & cleanup
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5805 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
-rw-r--r--docutils/docutils/utils.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/docutils/docutils/utils.py b/docutils/docutils/utils.py
index dc105158f..5079c2c54 100644
--- a/docutils/docutils/utils.py
+++ b/docutils/docutils/utils.py
@@ -434,19 +434,17 @@ def relative_path(source, target):
def get_stylesheet_reference(settings, relative_to=None):
"""
Retrieve stylesheet references from the settings object.
-
- Depracated. Use get_stylesheet_reference_list() instead to
- enable specification of multiple stylesheets as comma separated
+
+ Deprecated. Use get_stylesheet_reference_list() instead to
+ enable specification of multiple stylesheets as a comma-separated
list.
"""
if settings.stylesheet_path:
- assert not settings.stylesheet, \
- 'stylesheet and stylesheet_path are mutually exclusive.'
+ assert not settings.stylesheet, (
+ 'stylesheet and stylesheet_path are mutually exclusive.')
if relative_to == None:
relative_to = settings._destination
- sheets = [relative_path(relative_to, sheet)
- for sheet in settings.stylesheet_path.split(",")]
- return ",".join(sheets)
+ return relative_path(relative_to, settings.stylesheet_path)
else:
return settings.stylesheet
@@ -455,8 +453,8 @@ def get_stylesheet_reference_list(settings, relative_to=None):
Retrieve list of stylesheet references from the settings object.
"""
if settings.stylesheet_path:
- assert not settings.stylesheet, \
- 'stylesheet and stylesheet_path are mutually exclusive.'
+ assert not settings.stylesheet, (
+ 'stylesheet and stylesheet_path are mutually exclusive.')
if relative_to == None:
relative_to = settings._destination
return [relative_path(relative_to, sheet)