From d33b32323f99662f904598d4d454dac3b6c947fc Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Tue, 12 Jan 2016 23:53:45 +0900 Subject: [PATCH] 95 chars in line. It was warned by `make check`. --- sphinx/writers/manpage.py | 6 ++++-- tests/test_build_latex.py | 9 ++++++--- tests/test_util.py | 3 ++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py index 30e77165f..482b60596 100644 --- a/sphinx/writers/manpage.py +++ b/sphinx/writers/manpage.py @@ -43,9 +43,11 @@ class NestedInlineTransform(object): Flatten nested inline nodes: Before: - foo=1&bar=2 + foo=1 + &bar=2 After: - foo=var&bar=2 + foo=var + &bar=2 """ def __init__(self, document): self.document = document diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index 7b6ce6d14..ac843c897 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -391,7 +391,8 @@ def test_latex_show_urls_is_footnote(app, status, warning): '\\leavevmode\\footnotetext[7]{\nhttp://sphinx-doc.org/\n}\nDescription' in result) assert ('\\item[{Footnote in term \\protect\\footnotemark[9]}] ' '\\leavevmode\\footnotetext[9]{\nFootnote in term\n}\nDescription' in result) - assert ('\\item[{\\href{http://sphinx-doc.org/}{Term in deflist}\\protect\\footnotemark[8]}] ' + assert ('\\item[{\\href{http://sphinx-doc.org/}{Term in deflist}\\protect' + '\\footnotemark[8]}] ' '\\leavevmode\\footnotetext[8]{\nhttp://sphinx-doc.org/\n}\nDescription' in result) assert ('\\href{https://github.com/sphinx-doc/sphinx}' '{https://github.com/sphinx-doc/sphinx}\n' in result) @@ -431,9 +432,11 @@ def test_image_in_section(app, status, warning): print(result) print(status.getvalue()) print(warning.getvalue()) - assert ('\chapter[Test section]{\includegraphics[width=15pt,height=15pt]{{pic}.png} Test section}' + assert ('\chapter[Test section]' + '{\includegraphics[width=15pt,height=15pt]{{pic}.png} Test section}' in result) - assert ('\chapter[Other {[}blah{]} section]{Other {[}blah{]} \includegraphics[width=15pt,height=15pt]{{pic}.png} section}' in result) + assert ('\chapter[Other {[}blah{]} section]{Other {[}blah{]} ' + '\includegraphics[width=15pt,height=15pt]{{pic}.png} section}' in result) assert ('\chapter{Another section}' in result) diff --git a/tests/test_util.py b/tests/test_util.py index 3d30b6fe0..b0bca861f 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -15,7 +15,8 @@ def test_encode_uri(): expected = (u'https://ru.wikipedia.org/wiki/%D0%A1%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B0_' u'%D1%83%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F_' u'%D0%B1%D0%B0%D0%B7%D0%B0%D0%BC%D0%B8_%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85') - uri = u'https://ru.wikipedia.org/wiki/Система_управления_базами_данных' + uri = (u'https://ru.wikipedia.org/wiki' + u'/Система_управления_базами_данных') assert expected, encode_uri(uri) expected = (u'https://github.com/search?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+is%3A'