Skip to content

Commit

Permalink
Missing spaces in error messages #679
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke committed May 20, 2019
1 parent c54c6b2 commit 0795962
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tex/generic/pgf/math/pgfmathfunctions.basic.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
\pgfmath@y=#2pt\relax%
\let\pgfmath@sign=\pgfmath@empty%
\ifdim0pt=\pgfmath@y%
\pgfmath@error{You've asked me to divide `#1' by `#2', %
but I cannot divide any number by `#2'}%
\pgfmath@error{You've~asked~me~to~divide~`#1'~by~`#2',~%
but~I~cannot~divide~any~number~by~`#2'}%
\fi%
\afterassignment\pgfmath@xa%
\c@pgfmath@counta\the\pgfmath@y\relax%
Expand Down Expand Up @@ -205,7 +205,7 @@
\begingroup%
\expandafter\pgfmath@x#1pt\relax%
\ifdim\pgfmath@x=0pt\relax%
\pgfmath@error{You asked me to calculate `1/#1', but I cannot divide any number by zero}{}%
\pgfmath@error{You~asked~me~to~calculate~`1/#1',~but~I~cannot~divide~any~number~by~zero}{}%
\fi%
\edef\pgfmath@reciprocaltemp{\pgfmath@tonumber{\pgfmath@x}}%
\expandafter\pgfmathreciprocal@@\pgfmath@reciprocaltemp0000000\pgfmath@}
Expand Down Expand Up @@ -337,7 +337,7 @@
\begingroup%
\expandafter\pgfmath@x#1pt\relax%
\ifdim\pgfmath@x>0pt\else%
\pgfmath@error{I cannot calculate the logarithm of `#1'}{}%
\pgfmath@error{I~cannot~calculate~the~logarithm~of~`#1'}{}%
\fi%
\c@pgfmath@counta=0\relax%
\ifdim\pgfmath@x>2pt\relax%
Expand Down Expand Up @@ -563,7 +563,7 @@
\begingroup%
\expandafter\pgfmath@x#1pt\relax%
\ifdim\pgfmath@x<0pt\relax%
\pgfmath@error{I cannot calculate the square-root of the negative number `#1'}{}%
\pgfmath@error{I~cannot~calculate~the~square-root~of~the~negative~number~`#1'}{}%
\else%
\ifdim\pgfmath@x<10pt\relax%
\def\pgfmath@zeros{0}%
Expand Down

0 comments on commit 0795962

Please sign in to comment.