diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-02-17 10:06:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-17 10:06:09 +0900 |
commit | 91eeaea72f795f78a726f6c0101917e7fbcd41a1 (patch) | |
tree | 2219292eff63d32f84e42a0b6eb405b39a7397b7 /tests/test_ext_graphviz.py | |
parent | ff2264e5de00f4389a6b57fddbc5702f5a378eb4 (diff) | |
parent | 4a913e5cee23986bd87e4879848e12071417fbe6 (diff) | |
download | sphinx-git-91eeaea72f795f78a726f6c0101917e7fbcd41a1.tar.gz |
Merge pull request #4627 from rkapl/master
Fit graphviz images to page.
Diffstat (limited to 'tests/test_ext_graphviz.py')
-rw-r--r-- | tests/test_ext_graphviz.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_ext_graphviz.py b/tests/test_ext_graphviz.py index ef77135d7..3efab6b56 100644 --- a/tests/test_ext_graphviz.py +++ b/tests/test_ext_graphviz.py @@ -91,20 +91,20 @@ def test_graphviz_latex(app, status, warning): content = (app.outdir / 'SphinxTests.tex').text() macro = ('\\\\begin{figure}\\[htbp\\]\n\\\\centering\n\\\\capstart\n\n' - '\\\\includegraphics{graphviz-\\w+.pdf}\n' + '\\\\sphinxincludegraphics\\[\\]{graphviz-\\w+.pdf}\n' '\\\\caption{caption of graph}\\\\label{.*}\\\\end{figure}') assert re.search(macro, content, re.S) - macro = 'Hello \\\\includegraphics{graphviz-\\w+.pdf} graphviz world' + macro = 'Hello \\\\sphinxincludegraphics\\[\\]{graphviz-\\w+.pdf} graphviz world' assert re.search(macro, content, re.S) macro = ('\\\\begin{wrapfigure}{r}{0pt}\n\\\\centering\n' - '\\\\includegraphics{graphviz-\\w+.pdf}\n' + '\\\\sphinxincludegraphics\\[\\]{graphviz-\\w+.pdf}\n' '\\\\caption{on right}\\\\label{.*}\\\\end{wrapfigure}') assert re.search(macro, content, re.S) macro = (r'\{\\hfill' - r'\\includegraphics{graphviz-.*}' + r'\\sphinxincludegraphics\[\]{graphviz-.*}' r'\\hspace\*{\\fill}}') assert re.search(macro, content, re.S) |