How should I prevent a .pic definition inside a document environment, but outside a tikzpicture, from adding a space to the typeset output?
This is how .pic
is defined in tikz.code.tex
line 4636-4640
\pgfkeysdef{/handlers/.pic}{% \edef\pgf@temp{\pgfkeyscurrentpath}% \edef\pgf@temp{\expandafter\tikz@smuggle@pics@in\pgf@temp\pgf@stop}% \expandafter\pgfkeys\expandafter{\pgf@temp/.style={code={#1}}} }
The author missed a %
at the end of line 4639.
I reported it as a bug here: https://sourceforge.net/p/pgf/bugs/426/.