paolobrasolin / commutative-diagrams

CoDi: Commutative Diagrams for TeX
https://paolobrasolin.github.io/commutative-diagrams/
MIT License
30 stars 3 forks source link

\kDTrimTrailingSpace seems to be expanding random stuff #8

Closed paolobrasolin closed 7 years ago

paolobrasolin commented 7 years ago

Investigate.

paolobrasolin commented 7 years ago

Actually, it's expected behaviour. \ifx is used internally to search for an undefined terminator token. I was just being silly and using undefined tokens in the token list I was trimming in the tests.

So, caveat: you can't trim a token list if it contains undefined tokens.