Home Segments Top Top Previous Next

599: Mainline

You tell a tokenizer to recognize carriage returns using the eolIsSignificant method with true as the argument:

tokens.eolIsSignificant(true); 

Then, you can check the next token to see whether it is equal to the TT_EOL instance variable of the tokenizer.