texlive[60162] Master/texmf-dist/tex/latex/python/python.sty: python

commits+karl at tug.org commits+karl at tug.org
Wed Aug 4 23:14:59 CEST 2021


Revision: 60162
          http://tug.org/svn/texlive?view=revision&revision=60162
Author:   karl
Date:     2021-08-04 23:14:59 +0200 (Wed, 04 Aug 2021)
Log Message:
-----------
python (4aug21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/latex/python/python.sty

Modified: trunk/Master/texmf-dist/tex/latex/python/python.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/python/python.sty	2021-08-04 21:14:48 UTC (rev 60161)
+++ trunk/Master/texmf-dist/tex/latex/python/python.sty	2021-08-04 21:14:59 UTC (rev 60162)
@@ -25,8 +25,12 @@
 %% no more than 15 \newwrites are allowed (and the previous version created a new
 %% every time \@writemodule was called.
 
+%% 0.21 -> 0.22: Fixed bug where spurious spaces were introduced in the output.
+%% Thanks goes to Gernot Salzer <gernot.salzer at tuwien.ac.at> for pointing out
+%% the bug and providing a patch.
+
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{python}[2007/06/07 v0.21 Python in LaTeX]
+\ProvidesPackage{python}[2021/08/03 v0.22 Python in LaTeX]
 
 \newwrite\@out
 \newwrite\@module
@@ -39,7 +43,7 @@
 \def\python{\kernel at ifnextchar [{\@python}{\@python[]}}
 
 \def\@python[#1]{%
-\gdef\@pythoninclude{#1}
+\gdef\@pythoninclude{#1}%
 \immediate\openout\@out=\jobname.py
 \newlinechar='15
 \begingroup \catcode`\^^M=12 %
@@ -50,7 +54,7 @@
 \endgroup
 \immediate\closeout\@out
 \@writemodule
-\immediate\write18{cat \@pythoninclude\space\jobname.py | python > \jobname.py.out 2> \jobname.py.err}
+\immediate\write18{cat \@pythoninclude\space\jobname.py | python > \jobname.py.out 2> \jobname.py.err}%
 \immediate\input\jobname.py.out}
 %\immediate\write{\begin{verbatim}}
 %\immediate\input\jobname.py.err



More information about the tex-live-commits mailing list.