texlive[50709] Master/texmf-dist: context-handlecsv (2apr19)

commits+karl at tug.org commits+karl at tug.org
Tue Apr 2 23:10:26 CEST 2019


Revision: 50709
          http://tug.org/svn/texlive?view=revision&revision=50709
Author:   karl
Date:     2019-04-02 23:10:25 +0200 (Tue, 02 Apr 2019)
Log Message:
-----------
context-handlecsv (2apr19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/context/third/handlecsv/VERSION
    trunk/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua

Modified: trunk/Master/texmf-dist/doc/context/third/handlecsv/VERSION
===================================================================
--- trunk/Master/texmf-dist/doc/context/third/handlecsv/VERSION	2019-04-02 21:07:37 UTC (rev 50708)
+++ trunk/Master/texmf-dist/doc/context/third/handlecsv/VERSION	2019-04-02 21:10:25 UTC (rev 50709)
@@ -1 +1 @@
-2018.09.24
+2019.03.30

Modified: trunk/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua	2019-04-02 21:07:37 UTC (rev 50708)
+++ trunk/Master/texmf-dist/tex/context/third/handlecsv/t-handlecsv.lua	2019-04-02 21:10:25 UTC (rev 50709)
@@ -1,6 +1,6 @@
 -- %D \module
 -- %D   [     file=t-handlecsv.lua,
--- %D      version=2018.09.24,
+-- %D      version=2019.03.30,
 -- %D        title=HandleCSV module,
 -- %D     subtitle=CSV file handling,
 -- %D       author=Jaroslav Hajtmar,
@@ -9,7 +9,7 @@
 -- %D        email=hajtmar at gyza.cz,
 -- %D      license=GNU General Public License]
 --
--- %C Copyright (C) 2018 Jaroslav Hajtmar
+-- %C Copyright (C) 2019 Jaroslav Hajtmar
 -- %C
 -- %C This program is free software: you can redistribute it and/or modify
 -- %C it under the terms of the GNU General Public License as published by
@@ -1194,9 +1194,9 @@
  	\edef\thirdparam{#3}%
  	\def\fourthparam{#4}%
  	\edef\paroperator{#2}%
-%  operator '==' is for strings comparing converted to 'eq' operator
+ %  operator '==' is for strings comparing converted to 'eq' operator; a blank space before the percent sign is strictly required!!!
    \ctxlua{if '#2'=="==" and not(type(tonumber('#1'))=='number' and type(tonumber('#3'))=='number') then context('\\def\\paroperator{eq}') end}%
-%  operator '~=' is for strings comparing converted to 'neq' operator
+ %  operator '~=' is for strings comparing converted to 'neq' operator; a blank space before the percent sign is strictly required !!!
    \ctxlua{if '#2'=="~=" and not(type(tonumber('#1'))=='number' and type(tonumber('#3'))=='number') then context('\\def\\paroperator{neq}') end}%
 }%
 
@@ -1263,6 +1263,7 @@
 \def\doloopif#1#2#3#4{%
 	\edef\tempnumline{\numline}% 23.6.2017
     \readandprocessparameters{#1}{#2}{#3}{#4}%
+    \removeunwantedspaces% 25.3.2019
     % \resetnumline % 22.6.2017
     \bfilehook%
     % and now process actual operator
@@ -1303,11 +1304,12 @@
 	 \doloop{\ctxlua{if '#1'=='#3' then context('\\exitloop') else context('\\ifEOF\\exitloop\\else\\blinehook\\fourthparam\\elinehook\\nextrow\\fi') end}}%
      },% end until % the comma , is very important here!!!
      whiledo=>{% {substring}{untilneq}{string} ... % Repeat action when the condition is met. When the condition is not met for the first line, the action will NOT BE performed!
-	 \doloop{\ctxlua{if '#1'~='#3' then context('\\exitloop') else context('\\blinehook\\fourthparam\\elinehook\\ifEOF\\exitloop\\else\\nextrow\\fi') end}}%
+	 \doloop{\ctxlua{if '#1'~='#3' then context('\\exitloop') else context('\\removeunwantedspaces\\blinehook\\fourthparam\\elinehook\\ifEOF\\exitloop\\else\\nextrow\\fi') end}}%
      },% end untilneq % the comma , is very important here!!!
     ]% end of \processaction%
   \efilehook%
   \setnumline{\tempnumline}%
+  \removeunwantedspaces% 30.3.2019
 } % end of \doloopif
 
 



More information about the tex-live-commits mailing list