summaryrefslogtreecommitdiff
path: root/docutils/test/test_writers/test_html4css1_misc.py
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-03-15 22:27:04 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-03-15 22:27:04 +0000
commita4d9f4e01cc273c8c0e7a297015f3ec35be151ef (patch)
tree53661a6c6f5b41bb9a29da228523c2dac14b269f /docutils/test/test_writers/test_html4css1_misc.py
parent0c6db86bd824bd56d6705ba709411101b3770527 (diff)
downloaddocutils-a4d9f4e01cc273c8c0e7a297015f3ec35be151ef.tar.gz
Bugfix: do not make "stylesheet-path"s absolute.
The --stylesheet-path arguments are searched in the --stylesheet-dirs, therefore must not be made absolute before. Thanks to Martin Gignac for tracking down the bug. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7630 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_writers/test_html4css1_misc.py')
-rwxr-xr-xdocutils/test/test_writers/test_html4css1_misc.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/docutils/test/test_writers/test_html4css1_misc.py b/docutils/test/test_writers/test_html4css1_misc.py
index 0741b9cee..684894619 100755
--- a/docutils/test/test_writers/test_html4css1_misc.py
+++ b/docutils/test/test_writers/test_html4css1_misc.py
@@ -81,6 +81,16 @@ class SettingsTestCase(DocutilsTestSupport.StandardTestCase):
self.assertIn('docutils/writers/html4css1/html4css1.css', styles)
self.assertIn('href="data/ham.css"', styles)
+ def test_custom_stylesheet_dir_embedded(self):
+ mysettings = {'_disable_config': True,
+ 'embed_stylesheet': True,
+ 'stylesheet_dirs': ('../docutils/writers/html4css1/',
+ 'data'),
+ 'stylesheet_path': 'ham.css'}
+ styles = core.publish_parts(self.data, writer_name='html4css1',
+ settings_overrides=mysettings)['stylesheet']
+ self.assertIn('dl.docutils dd {\n margin-bottom: 0.5em }', styles)
+
class MathTestCase(DocutilsTestSupport.StandardTestCase):
"""Attention: This class tests the current implementation of maths support