Fix infinite loop in the example on Loops over list of items provided under Section 2.6.2 of TeX-programming-notes.tex#485
Conversation
dffaa98 to
e2b52c5
Compare
provided under Section 2.6.2 of TeX-programming-notes.tex
e2b52c5 to
2531e37
Compare
|
This fix fails if the item iterated over starts with two identical tokens. Example: |
Thanks! Will make the changes as you suggested. |
| \def\next{\looppicker{#1}{#2}}% | ||
| \fi | ||
| \next | ||
| \next% |
There was a problem hiding this comment.
Please note I needed to append % here so make notes won't get into an infinite loop. Basically a hack to get around what seems to be a flaw of the existing build system.
| }% | ||
| \listingloop\x in{a,b,c,,d,e}{% | ||
| The current item is `\x' | ||
| \listingloop\x in{aa, b,c ,,d,e}{% |
There was a problem hiding this comment.
I modified the test cases to have a wider range of coverage of what otherwise could have gone wrong without being noticed.
Fixes a bug in the example on Loops over list of items provided under Section 2.6.2 of
TeX-programming-notes.tex.How to locally build
TeX-programming-notes.pdffrom sourcePre-requisite
Build the pdf