summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNozomu Kaneko <nozom.kaneko@gmail.com>2013-01-06 18:05:49 +0900
committerNozomu Kaneko <nozom.kaneko@gmail.com>2013-01-06 18:05:49 +0900
commita4efeb35deb15f9d27ad0a4f2d76195b8c993d84 (patch)
tree689d14e68e4a092f228ffbe3a62fcc20bb99522f /tests
parent222605813861d4aad4eeeedae8413fe799af08fe (diff)
downloadsphinx-a4efeb35deb15f9d27ad0a4f2d76195b8c993d84.tar.gz
fix: paragraphs in versionmodified are ignored when it has no dangling paragraphs.
Diffstat (limited to 'tests')
-rw-r--r--tests/root/markup.txt9
-rw-r--r--tests/test_build_html.py5
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/root/markup.txt b/tests/root/markup.txt
index cbfbbbe3..1fb20cf0 100644
--- a/tests/root/markup.txt
+++ b/tests/root/markup.txt
@@ -208,6 +208,15 @@ Version markup
.. deprecated:: 0.6
Boring stuff.
+.. versionadded:: 1.2
+
+ First paragraph of versionadded.
+
+.. versionchanged:: 1.2
+ First paragraph of versionchanged.
+
+ Second paragraph of versionchanged.
+
Code blocks
-----------
diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index abd60bbb..05def19d 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -145,6 +145,11 @@ HTML_XPATH = {
(".//abbr[@title='abbreviation']", '^abbr$'),
# version stuff
(".//span[@class='versionmodified']", 'New in version 0.6'),
+ (".//p[@class='versionadded']/span[@class='versionmodified']",
+ tail_check('First paragraph of versionadded')),
+ (".//p[@class='versionchanged']/span[@class='versionmodified']",
+ tail_check('First paragraph of versionchanged')),
+ (".//p", 'Second paragraph of versionchanged'),
# footnote reference
(".//a[@class='footnote-reference']", r'\[1\]'),
# created by reference lookup