mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge with 0.6
This commit is contained in:
@@ -56,3 +56,12 @@ Test if dedenting before parsing works.
|
||||
.. cssclass:: inc-pyobj-dedent
|
||||
.. literalinclude:: literal.inc
|
||||
:pyobject: Bar.baz
|
||||
|
||||
Docutils include with "literal"
|
||||
===============================
|
||||
|
||||
While not recommended, it should work (and leave quotes alone).
|
||||
|
||||
.. include:: quotes.inc
|
||||
:literal:
|
||||
:tab-width: 4
|
||||
|
||||
1
tests/root/quotes.inc
Normal file
1
tests/root/quotes.inc
Normal file
@@ -0,0 +1 @@
|
||||
Testing "quotes" in literal 'included' text.
|
||||
@@ -77,6 +77,8 @@ HTML_XPATH = {
|
||||
".//pre": u'Max Strauß',
|
||||
".//a[@href='_downloads/img.png']": '',
|
||||
".//a[@href='_downloads/img1.png']": '',
|
||||
".//pre": u'"quotes"',
|
||||
".//pre": u"'included'",
|
||||
},
|
||||
'autodoc.html': {
|
||||
".//dt[@id='test_autodoc.Class']": '',
|
||||
|
||||
Reference in New Issue
Block a user