File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 33663366 \def\tikz@plot@filename {\tikz@plot@prefix\tikz@plot@id }%
33673367 \iftikz@plot@raw@gnuplot %
33683368 \def\tikz@plot@data {%
3369- \pgfplotgnuplot [\tikz@plot@filename ]{\pgfutil@trimspaces {#1}}}%
3369+ \pgfplotgnuplot [\tikz@plot@filename ]{\pgfutil@trimspaces@e {#1}}}%
33703370 \else %
33713371 \iftikz@plot@parametric %
33723372 \def\tikz@plot@data {\pgfplotgnuplot [\tikz@plot@filename ]{%
33753375 plot [t=\tikz@plot@domain ]
33763376 [\tikz@plot@xrange ]
33773377 [\tikz@plot@range ]
3378- \pgfutil@trimspaces {#1}}}%
3378+ \pgfutil@trimspaces@e {#1}}}%
33793379 \else %
33803380 \def\tikz@plot@data {\pgfplotgnuplot [\tikz@plot@filename ]{%
33813381 set samples \tikz@plot@samples ;
33823382 plot [x=\tikz@plot@domain ]
33833383 \ifx \tikz@plot@range\pgfutil@empty \else [\tikz@plot@range ]\fi
3384- \pgfutil@trimspaces {#1}}}%
3384+ \pgfutil@trimspaces@e {#1}}}%
33853385 \fi %
33863386 \fi %
33873387 \tikz@@@plot %
Original file line number Diff line number Diff line change 490490 \pgfutil@read\pgfutil@inputcheck to\pgf@temp % ignored
491491 \pgfutil@read\pgfutil@inputcheck to\pgf@plot@line %
492492 \closein\pgfutil@inputcheck
493- \edef\pgf@plot@code {#2}%
493+ \edef\pgf@plot@code {\pgfutil@trimspaces@e { #2}} % in case of leading spaces
494494 \ifx \pgf@plot@code\pgf@plot@line %
495495 \openin\pgfutil@inputcheck =\pgfretval\relax
496496 \ifeof \pgfutil@inputcheck %
Original file line number Diff line number Diff line change 4949\def\pgfutil@trimspaces@@ #1Q#2{#1}
5050\catcode `\Q=11
5151
52+ \def\pgfutil@trimspaces@e #1{%
53+ \expandafter\pgfutil@trimspaces\expandafter {\pgfutil@expanded {#1}}%
54+ }
55+
5256% \pgfutil@ifx{<token 1>}{<token 2>}{<true code>}{<false code>}
5357%
5458% This macro is expandable.
You can’t perform that action at this time.
0 commit comments