"Vincent van Ravesteijn - TNW" <v.f.vanraveste...@tudelft.nl> writes: > I couldn't reproduce this with a minimal example. > > FYI, I found out that the t.cs() becomes 'crap' after text.cpp:1544. At > this line, there is a call to p.next_token() which will call > tokens_.push_back() somewhere and after this, t.cs() is bogus and thus > the "else-if (t.cs() == "verb")" will always be passed.
Yes. > It happens always, and only in a table directly after '\\'. It also > happens for example \textit{..} instead of \verb". It looks perfectly > reproducable. > > So, the vector only 'reallocates' the tokens when a second token is > added. > > Still, I don't understand this. When the vector is reallocated, the old version is still there until some other allocation causes it to be overwritten by some other data. This is the part that is unpredictable. I am going to commit what is IMO a better fix. JMarc