Skip to content

Commit e41fca5

Browse files
authored
Merge pull request #8950 from tacaswell/fix_36_pgf_tests
FIX: invalid escapes in backend_pgf
2 parents 4e8c7fe + fd2fdb1 commit e41fca5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ environment:
1414
CMD_IN_ENV: cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd
1515
# Workaround for https://github.com/conda/conda-build/issues/636
1616
PYTHONIOENCODING: UTF-8
17-
PYTEST_ARGS: -rawR --timeout=300 --durations=25 -n %NUMBER_OF_PROCESSORS% --cov-report= --cov=lib -m "not network"
17+
PYTEST_ARGS: -rawR --timeout=300 --durations=25 --cov-report= --cov=lib -m "not network"
1818
PYTHONHASHSEED: 0 # Workaround for pytest-xdist flaky collection order
1919
# https://github.com/pytest-dev/pytest/issues/920
2020
# https://github.com/pytest-dev/pytest/issues/1075
@@ -88,7 +88,7 @@ install:
8888
- echo %PYTHON_VERSION% %TARGET_ARCH%
8989
- if %PYTHON_VERSION% == 2.7 conda install -q backports.functools_lru_cache
9090
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
91-
- pip install -q pytest "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout pytest-xdist
91+
- pip install -q pytest "pytest-cov>=2.3.1" pytest-rerunfailures pytest-timeout
9292

9393
# Let the install prefer the static builds of the libs
9494
- set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib

lib/matplotlib/backends/backend_pgf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def common_texification(text):
137137

138138

139139
def writeln(fh, line):
140-
# every line of a file included with \input must be terminated with %
140+
# every line of a file included with \\input must be terminated with %
141141
# if not, latex will create additional vertical spaces for some reason
142142
fh.write(line)
143143
fh.write("%\n")
@@ -782,7 +782,7 @@ def _print_pgf_to_fh(self, fh, *args, **kwargs):
782782
%% Make sure the required packages are loaded in your preamble
783783
%% \\usepackage{pgf}
784784
%%
785-
%% Figures using additional raster images can only be included by \input if
785+
%% Figures using additional raster images can only be included by \\input if
786786
%% they are in the same directory as the main LaTeX file. For loading figures
787787
%% from other directories you can use the `import` package
788788
%% \\usepackage{import}

0 commit comments

Comments
 (0)