summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-03-06 17:49:49 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-03-06 17:49:49 +0900
commit549b6e27df0c2805f323a4340dc3d7f3773c55b3 (patch)
treeb0b2b224a0bb4f2697aa1ea037137a7bec553eaf /tests
parent720c9706de22d7f0a892c9eb662b80a5da141392 (diff)
downloadsphinx-git-549b6e27df0c2805f323a4340dc3d7f3773c55b3.tar.gz
Fix #1498: manpage writer: don't make whole of item in definition list bold if it includes strong node
Diffstat (limited to 'tests')
-rw-r--r--tests/root/lists.txt9
-rw-r--r--tests/test_build_manpage.py4
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/root/lists.txt b/tests/root/lists.txt
index 99a55dc39..1fa2d11c5 100644
--- a/tests/root/lists.txt
+++ b/tests/root/lists.txt
@@ -52,3 +52,12 @@ y. y
#. z
#. {
+
+definition lists
+-----------------
+
+term1
+ description
+
+term2 (**stronged partially**)
+ description
diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py
index 26fa8c494..8da2eaadd 100644
--- a/tests/test_build_manpage.py
+++ b/tests/test_build_manpage.py
@@ -21,3 +21,7 @@ def test_all(app, status, warning):
content = (app.outdir / 'SphinxTests.1').text()
assert r'\fBprint \fP\fIi\fP\fB\en\fP' in content
assert r'\fBmanpage\en\fP' in content
+
+ # term of definition list including nodes.strong
+ assert '\n.B term1\n' in content
+ assert '\nterm2 (\\fBstronged partially\\fP)\n' in content